Frictional Games Forum (read-only)
Scripting Help - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: SOMA (https://www.frictionalgames.com/forum/forum-55.html)
+--- Forum: User created content (https://www.frictionalgames.com/forum/forum-79.html)
+---- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-80.html)
+---- Thread: Scripting Help (/thread-31270.html)

Pages: 1 2


RE: Scripting Help - Chet315 - 10-11-2015

(10-11-2015, 12:10 AM)Modulator Wrote: According to CodeLite, it states this for Lamp_SetLit();

[Image: c6a04883a0.png]

The first one will therefore, set whether the lamp is on or off.
And the second will be if effects should be applied (if any). For example, a lamp may fade in or out as an on/off animation.

Awesome! Thank you all for your kind feedback instead of degrading me by calling me stupid. I appreciate it!


RE: Scripting Help - Romulator - 10-11-2015

This section of the community is about helping others, not putting them down Smile Good luck with your project!


RE: Scripting Help - Mudbill - 10-11-2015

Perhaps you already got the answer you wanted but I'm still a bit unsure about what you originally meant. Why Entity_SetActive could potentially have two booleans? Would it be like me asking why gameObject.SetActive(true, true); would have two even though it doesn't? Whether a function uses one or two (or more) depends on what it was made for and what function it serves, and seeing as the SetActive wasn't made to use anything more, I don't quite understand the example.