emit projectile

emit projectile

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Erik
Posts: 283
Joined: 20 Aug 2009, 20:49

emit projectile

Post by Erik » 02 Dec 2012, 16:41

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.
0 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10223
Joined: 24 Jan 2006, 21:12

Re: emit projectile

Post by PicassoCT » 14 Dec 2012, 12:41

EmitSfx(point,4096+WeaponNumber)
0 x

User avatar
Erik
Posts: 283
Joined: 20 Aug 2009, 20:49

Re: emit projectile

Post by Erik » 14 Dec 2012, 13:04

From a gadget plz.
0 x

Google_Frog
Moderator
Posts: 2434
Joined: 12 Oct 2007, 09:24

Re: emit projectile

Post by Google_Frog » 04 Jan 2013, 05:42

You could make a dummy unit and arbitrarily manipulate it's pieces to emit a projectile from anywhere on the map.
0 x

User avatar
Erik
Posts: 283
Joined: 20 Aug 2009, 20:49

Re: emit projectile

Post by Erik » 09 Jan 2013, 21:02

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?
0 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10223
Joined: 24 Jan 2006, 21:12

Re: emit projectile

Post by PicassoCT » 10 Jan 2013, 18:31

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.
0 x

Post Reply

Return to “Feature Requests”