Tanks Multiplayer
1.4
|
Projectile script for player shots with collision/hit logic. More...
Public Member Functions | |
override void | OnStartServer () |
On Host, add automatic despawn coroutine More... | |
Public Attributes | |
float | speed = 10 |
Projectile travel speed in units. More... | |
int | damage = 3 |
Damage to cause on a player that gets hit. More... | |
float | despawnDelay = 1f |
Delay until despawned automatically when nothing gets hit. More... | |
int | bounce = 0 |
Bounce count of walls and other environment obstactles. More... | |
int | maxTargets = 1 |
Maximum amount of Players this bullet can hit on explosion. More... | |
float | explosionRange = 1 |
Range within the explosion deals damage to other Players. The area is only checked if maxTargets is greater than 1. More... | |
AudioClip | hitClip |
Clip to play when a player gets hit. More... | |
AudioClip | explosionClip |
Clip to play when this projectile gets despawned. More... | |
GameObject | hitFX |
Object to spawn when a player gets hit. More... | |
GameObject | explosionFX |
Object to spawn when this projectile gets despawned. More... | |
GameObject | owner |
Player gameobject that spawned this projectile. More... | |
Projectile script for player shots with collision/hit logic.
override void OnStartServer | ( | ) |
On Host, add automatic despawn coroutine
int bounce = 0 |
Bounce count of walls and other environment obstactles.
int damage = 3 |
Damage to cause on a player that gets hit.
float despawnDelay = 1f |
Delay until despawned automatically when nothing gets hit.
AudioClip explosionClip |
Clip to play when this projectile gets despawned.
GameObject explosionFX |
Object to spawn when this projectile gets despawned.
float explosionRange = 1 |
Range within the explosion deals damage to other Players. The area is only checked if maxTargets is greater than 1.
AudioClip hitClip |
Clip to play when a player gets hit.
GameObject hitFX |
Object to spawn when a player gets hit.
int maxTargets = 1 |
Maximum amount of Players this bullet can hit on explosion.
GameObject owner |
Player gameobject that spawned this projectile.
float speed = 10 |
Projectile travel speed in units.