Straight-line Projectile (TPS)

Status
Not open for further replies.
Level 4
Joined
Aug 13, 2009
Messages
57
I want a projectile that is destroyed upon contact with an enemy, how do you recommend i go about this?

the projectile leaves the unit in a straight line until, continuing at a velocity until it reaches distance(x) or collides with an enemy, where it is destroyed.

would i create a unit as my projectile? having it deal damage an destroy itself upon entering a region proximate to an enemy?

what do you think?

also, this is for a third person shooter
 
Use movers to make it go in a straight line. Just spawn a missle for the bullet.

Give the bullet a perodic behaviour that tests if any enemy units are nearby. If one is found, the bullet deals its damage and then kills itself.

You just need to use triggers to start the effect by running the effect which makes the missle.
 
Status
Not open for further replies.
Back
Top