Page 1 of 1
emit projectile
Posted: 02 Dec 2012, 16:41
by Erik
A simple function to spawn a projectile
parameters: weapon,unitID(the weapon acts like fired from that unit), initial position and physical properties(velocity), target etc.
Rather odd that this doesn't exist already.
Re: emit projectile
Posted: 14 Dec 2012, 12:41
by PicassoCT
EmitSfx(point,4096+WeaponNumber)
Re: emit projectile
Posted: 14 Dec 2012, 13:04
by Erik
From a gadget plz.
Re: emit projectile
Posted: 04 Jan 2013, 05:42
by Google_Frog
You could make a dummy unit and arbitrarily manipulate it's pieces to emit a projectile from anywhere on the map.
Re: emit projectile
Posted: 09 Jan 2013, 21:02
by Erik
That would make the invisible unit the attacker and lead to bugs(experience not given etc.) and also not give good control over the starting physics.
It shouldn't be too overly difficult adding a function for that i guess?
Re: emit projectile
Posted: 10 Jan 2013, 18:31
by PicassoCT
Go implement it
Sorry thats mean.. but there also was no "Make volcanos" gadget there.. so here is the lua, there the notepad - i will leave a gap now - feel free to swear loudly.
.
.
.
There we feel better allready.