Lua: CreateCEGEvent
Moderator: Moderators
Lua: CreateCEGEvent
I would like a way to start a CEG, by name and location xyz, via a synced event in Lua.
-
- Posts: 1176
- Joined: 23 Aug 2007, 19:46
Re: Lua: CreateCEGEvent
While talking about CEG spawning I'd like to have a possibility to spawn CEGs (most favorable via COB) that point towards an empty object. That would be very handy to add lots of FX to a unit/building which are about impossible to do now...
With that you could do all that stuff like some things spinning around a reactor spawning dynamic lightnings towards the middle or mutliple laser beams shooting into a prism or something and then the unit fires a bigger beam as a weapon...
This of course could be combined with what Argh asks for here so that you do a LUA call from the COB which passes the emission point and direction of the effect to the LUA function...
With that you could do all that stuff like some things spinning around a reactor spawning dynamic lightnings towards the middle or mutliple laser beams shooting into a prism or something and then the unit fires a bigger beam as a weapon...
This of course could be combined with what Argh asks for here so that you do a LUA call from the COB which passes the emission point and direction of the effect to the LUA function...
Re: Lua: CreateCEGEvent
I'd prefer the ability to spawn a weapon projectile first...
Krogoth: Play SimBase.
Krogoth: Play SimBase.
Re: Lua: CreateCEGEvent
Weapon projectiles wouldn't be a bad thing, either, but I specifically want CEGs, for certain FX jobs, to avoid some yucky workarounds.
And yeah, it's perfectly possible to use CEGs with COB, and do the things described.
And yeah, it's perfectly possible to use CEGs with COB, and do the things described.
-
- Posts: 1176
- Joined: 23 Aug 2007, 19:46
Re: Lua: CreateCEGEvent
I saw nothing special in there when I checked it the last time...KDR_11k wrote:Krogoth: Play SimBase.
Then please tell me how to emit a FX from point A that will emit towards point B and I'm talking of something dynamic - not something like a muzzleflash that is "dynamic" as it always emits in front of the barrel and directed away from it but something dynamic where the object(s) move and the respective direction changes too...Argh wrote:And yeah, it's perfectly possible to use CEGs with COB, and do the things described.
You COULD fake some of those with rotating the emiting object but that only works in simple cases and is a lot of work. Just having something that principally works like an "emit from" and "emit towards" would be just nice...