Feature CEG Gadget

Feature CEG Gadget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Evil4Zerggin
Posts: 557
Joined: 16 May 2007, 06:34

Feature CEG Gadget

Post by Evil4Zerggin »

Plays a given ceg when a feature is created or destroyed. Nothing fancy code-wise at least for the near future; the idea is more valuable than the code.

Image

Use: The customParams ceg_created and ceg_destroyed control what ceg is spawned.

You can get it here: http://spring1944.svn.sourceforge.net/v ... iew=markup
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: Feature CEG Gadget

Post by TheFatController »

As there's no GetFeatureBasePosition you may want to use GetGroundHeight on fx,fz to get fy otherwise not all the parts of the ceg will show up I believe (had this problem with the groundflash/glow on comgate gadget)

Also cool idea ;)
User avatar
Evil4Zerggin
Posts: 557
Joined: 16 May 2007, 06:34

Re: Feature CEG Gadget

Post by Evil4Zerggin »

Thanks for the tip. Strangely, it seems to work properly when I tried it (note the groundflash around the burning tanks), but if I run into problems I'll keep that in mind.
Post Reply

Return to “Lua Scripts”