leob 10 Posted October 22, 2014 Hello, I'm wondering when not to use local variables. 1. In the onActivation field of a Trigger (or even a waypoint) placed in the Editor. Can I create local script handles in here? (e.g. the _null script handle) I thought it was not even possible but somehow the game doesn't care anymore... Did they change it or was it possible all the time? Can I run into probloems when publishing my singleplayer mission? 2. In an EventHandler coder? Is that code spawned btw (i.e. can I use waitUntil here?) Thanks Share this post Link to post Share on other sites
killzone_kid 1331 Posted October 22, 2014 you can use _null = ...in onActivation in trigger, it is only Editor that doesn't like it. If you use setTriggerStatements command, there is no problem. Share this post Link to post Share on other sites
leob 10 Posted October 22, 2014 Thanks Killzone_Kid! I guess it's the same for eventHandlers then. One last thing: is a code that gets executed in the eventHandler scheduled environment? Share this post Link to post Share on other sites
killzone_kid 1331 Posted October 22, 2014 Thanks Killzone_Kid! I guess it's the same for eventHandlers then.One last thing: is a code that gets executed in the eventHandler scheduled environment? Unscheduled. Share this post Link to post Share on other sites