Data Realms Fan Forums http://45.55.195.193/ |
|
Emission Enable http://45.55.195.193/viewtopic.php?f=73&t=16088 |
Page 1 of 1 |
Author: | Mind [ Mon Aug 03, 2009 5:44 am ] |
Post subject: | Emission Enable |
Having a little trouble with emissionenable. Here's the code I'm working on. I Have "self:EmissionEnable(false);" in create Here's what I have. Code: function Update(self) if variable == true then self:EmissionEnabled(true); end end Cept it's saying in the third line on the code, EmissionEnabled is nil, but the one in create is fine :3 Just want it to not emit until the variable is true Thanks for any help |
Author: | Kyred [ Mon Aug 03, 2009 6:26 am ] |
Post subject: | Re: Emission Enable |
It's self:EnableEmission(), not EmissionEnabled() [/facepalm moment] |
Author: | MaximDude [ Mon Aug 03, 2009 12:42 pm ] |
Post subject: | Re: Emission Enable |
EmissionEnabled() checks whether the emission is enabled or not. EnableEmission(true/false) enables/disables emission. [/third-party facepalm for Kyred] |
Author: | Kyred [ Mon Aug 03, 2009 1:30 pm ] |
Post subject: | Re: Emission Enable |
Woops, my bad. |
Author: | MaximDude [ Mon Aug 03, 2009 1:38 pm ] |
Post subject: | Re: Emission Enable |
You can also use 'self:IsEmitting() == true/false' for checking. |
Author: | Mind [ Mon Aug 03, 2009 5:52 pm ] |
Post subject: | Re: Emission Enable |
So you can't find a solution to it? :3 |
Author: | MaximDude [ Mon Aug 03, 2009 6:00 pm ] |
Post subject: | Re: Emission Enable |
Code: if variable == something then if self:IsEmitting() == false then self:EnableEmission(true); end else if self:IsEmitting() == true then self:EnableEmission(false); end end |
Author: | Mind [ Mon Aug 03, 2009 6:08 pm ] |
Post subject: | Re: Emission Enable |
Oh my I'm dumb. Forgot to change EmissionEnabled to EnableEmission Thanks for the help guys |
Author: | Mind [ Mon Aug 03, 2009 7:49 pm ] |
Post subject: | Re: Emission Enable |
Double Post so it's bumped real quick. How would you make an actor that isn't able to be selected? Tried team = -1 self.InputMode = 3;(as per zalo) self:SetControllerMode(Controller.CIM_PLAYER, -1);(also per zalo) None worked. ;__; THanks for any help. |
Author: | MaximDude [ Mon Aug 03, 2009 8:15 pm ] |
Post subject: | Re: Emission Enable |
Uhhhh... Maybe Code: function Create(self) self.Team = -1 end Might work, but then again, I never tried anything like that. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |