Data Realms Fan Forums
http://45.55.195.193/

Giving an actor an emitter?
http://45.55.195.193/viewtopic.php?f=1&t=14921
Page 1 of 1

Author:  Erahgon [ Sun May 24, 2009 9:30 pm ]
Post subject:  Giving an actor an emitter?

Can I give an actor an emitter (a mermanent emitter that keeps going as soon as it's spawned), and if so, can someone link me/post an example of this (in code form).

Author:  Duh102 [ Sun May 24, 2009 9:51 pm ]
Post subject:  Re: Giving an actor an emitter?

Like attached to the actor? Yeah, easily.
Somewhere in the actor definition:
Code:
[tab]AddEmitter = AEmitter
[tab][tab]CopyOf = *EMITTER*
[tab][tab]ParentOffset = Vector
[tab][tab][tab]X = *X*
[tab][tab][tab]Y = *Y*

Replace *EMITTER* with your emitter, *X* with the X offset of where you want it to be (+X is right), and *Y* with the Y offset of where you want it to be (+Y is down).

Author:  Azukki [ Sun May 24, 2009 10:06 pm ]
Post subject:  Re: Giving an actor an emitter?

By the way it's not going to turn around when the actor turns around, so I hope you're wanting to aim that either up, down, or radially.

Author:  Grif [ Mon May 25, 2009 6:05 am ]
Post subject:  Re: Giving an actor an emitter?

Of course you can also use Lua to update the hflipped status.

And change whether it's emitting.

Author:  zalo [ Mon May 25, 2009 6:27 am ]
Post subject:  Re: Giving an actor an emitter?

But if you were to link the emitter to the actor by a Position lock, then the
emitter couldn't damage the actor or push the actor in the normal ways.

And, I'm fairly sure you can't access an emitter attached to an actor, and emitters
attached to actors can't have Lua scripts running on them.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/