• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,287
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.
Top