Update PistolComponent.cs

This commit is contained in:
sebastianhampel1 2023-07-14 19:43:38 -04:00
parent 970a2a5697
commit ed815775eb

View File

@ -142,8 +142,10 @@ namespace Item
var projectile = Instantiate(projectilePrefab); var projectile = Instantiate(projectilePrefab);
projectile.transform.position = bulletSpawnPoint.transform.position; projectile.transform.position = bulletSpawnPoint.transform.position;
projectile.transform.rotation = bulletSpawnPoint.transform.rotation; projectile.transform.rotation = bulletSpawnPoint.transform.rotation;
//Comment this line if you want to remove the mega scale.
projectile.transform.localScale =bulletSpawnPoint.transform.localScale; projectile.transform.localScale =bulletSpawnPoint.transform.localScale;
InstanceFinder.ServerManager.Spawn(projectile); //var projectile = Instantiate(projectilePrefab, bulletSpawnPoint); InstanceFinder.ServerManager.Spawn(projectile); //var projectile = Instantiate(projectilePrefab, bulletSpawnPoint);
//InstanceFinder.ServerManager.Spawn(projectile); //InstanceFinder.ServerManager.Spawn(projectile);