Jump to content
Sign in to follow this  
leob

Create local variable in global space

Recommended Posts

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

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

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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×