emit projectile

emit projectile

Requests for features in the spring code.

Moderators: Moderators, Moderators

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

emit projectile

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

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

Re: emit projectile

Post by PicassoCT »

EmitSfx(point,4096+WeaponNumber)
0 x

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

Re: emit projectile

Post by Erik »

From a gadget plz.
0 x

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

Re: emit projectile

Post by Google_Frog »

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 »

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: 10306
Joined: 24 Jan 2006, 21:12

Re: emit projectile

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

Post Reply

Return to “Feature Requests”