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

Shot someone Ploblem!

Status
Not open for further replies.
Level 5
Joined
Sep 3, 2008
Messages
74
Plz pay look at this picture:

0 0 o
0 This are shots ! ! -!!- <---This is a soldier
/!~ - _ - 0-0 /\
! ! ! ! This^ This is a car
is a robot

Now the main question:How can I make that the shots gets into the car and not into the soldier?Plz help me!
 
Last edited:
Level 11
Joined
Dec 31, 2007
Messages
780
a unit is attacked

attacking unit is a robot

actions
create a unit with your bullet model
make a periodic trigger initially disabled and enable it here


in the periodic trigger make this

move unit to position of unit offset by 40 towards position of attacked unit
make an if that checks if the bullet gets in the range of 150 of a car
if it does then make the bullet die
else nothing


OR

you can download the map i have in my signature and take a look at what is an offset and how to make units look like bullets or something
 
Status
Not open for further replies.
Top