View unanswered posts | View active topics It is currently Thu Jan 09, 2025 11:36 pm



Reply to topic  [ 5 posts ] 
 Giving an actor an emitter? 
Author Message

Joined: Thu Apr 12, 2007 2:53 am
Posts: 83
Reply with quote
Post 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).


Sun May 24, 2009 9:30 pm
Profile WWW
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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).


Sun May 24, 2009 9:51 pm
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post 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.


Sun May 24, 2009 10:06 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Giving an actor an emitter?
Of course you can also use Lua to update the hflipped status.

And change whether it's emitting.


Mon May 25, 2009 6:05 am
Profile

Joined: Sat Feb 03, 2007 7:11 pm
Posts: 1496
Reply with quote
Post 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.


Mon May 25, 2009 6:27 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.031s | 14 Queries | GZIP : Off ]