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

Projectile System

Status
Not open for further replies.
Level 9
Joined
Jan 17, 2009
Messages
372
Hello, i am new to the galaxy editor and i was wondering how you could create a projectile system, not instant like a gunshot but like a rocket or something similar. Please help!

Also, i have some background with the world editor for basic triggering but i do not know anything about the new data editor.
 
Level 9
Joined
Jan 17, 2009
Messages
372
i want to make a projectile for like a 3rd or first person game. I want it to be so that when a player fires(left clicks) a projectile, the projectile will fly forward until
it hits a unit, cliff, doodad, destructible or the terrain becomes to high and it hits the ground.
 
Level 4
Joined
Jul 4, 2009
Messages
77
Havent created one fully myself, but Ill get you started with the following info.

I would suggest looking at the weapons, models, effects, and movers that are used for the LOST VIKING minigame that comes with the Campaign. That uses projectiles that fly forward until hitting something.

Overall I believe your answer lies in Movers and in Launch/Damage Effects. You can change many things, such as projectile time spent in air, effect of gravity on projectile, the flight type (thrown, balistic).
 
Level 2
Joined
Apr 2, 2010
Messages
12
Hey i had such a problem also but my sulotion is to make a dummy unit that every ?? seconds is moved forward by ?? much in the direction it is looking in,then a 2nd trigger can wait until the dummy unit comes within ?? of an enany unit?? a good trigger cause u can set a model and speed but im strugling with trying to make it so u can hit flying units using camera angle
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
ArchAngel075, that approach is not advisable in SC2 due to the fact movers already exist and that the low trigger update time will make the projectile appear to be teleporting rather than flying smoothly.

To do what you are after I advise using movers to do base projectile movement followed by a trigger correction if required. To hit flying units it is basicly circular intersection with a line units principles taught in mathimatics. If the line intersects with the circle, you hit the target and if not then you missed.
 
Status
Not open for further replies.
Top