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.
emit projectile
Moderator: Moderators
Re: emit projectile
EmitSfx(point,4096+WeaponNumber)
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: emit projectile
You could make a dummy unit and arbitrarily manipulate it's pieces to emit a projectile from anywhere on the map.
Re: emit projectile
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?
It shouldn't be too overly difficult adding a function for that i guess?
Re: emit projectile
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.
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.