Tanks Multiplayer  1.5
Public Attributes | List of all members
Bullet

Projectile script for player shots with collision/hit logic. More...

Inheritance diagram for Bullet:

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...
 

Detailed Description

Projectile script for player shots with collision/hit logic.

Member Data Documentation

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.


The documentation for this class was generated from the following file: