Script Priority

From Virtools Wiki

Jump to: navigation, search


Level Scripts and Object Scripts

Scripts on the Level are executed before scripts on objects.

NOTE The Level is always active and is the highest priority element in every frame. All currently inactive elements are ignored in the remaining tasks.

BeObject Priorities

A BeObject priority can be from -32000 to 32000

     + default Level priority = 32000
     + default Scene priority = 30000
     + default Place priority = 20000
     + default BeObject priority = 0

So you can change a BeObject priority in order to be executed before a Scene or a Place.

Even if you can't change Level and Scene priorities in the Level Manager, there is the function BeObject::SetPriority callable in a VSL script. But I don't recommend doing so because in this case you won't see in the Level Manager that you changed a priority (as Level and Scene priorities are not shown). So let's say I did not tell you this...

Personal tools
The Swap-Meet