Difference between revisions of "Disable"
Jump to navigation
Jump to search
imported>Fella |
imported>Haama (→Notes: Added parent ref note) |
||
Line 7: | Line 7: | ||
* Disable does '''not''' remove objects from the game, just stops them from rendering. Do not rely on Disable to save on performance by removing objects. | * Disable does '''not''' remove objects from the game, just stops them from rendering. Do not rely on Disable to save on performance by removing objects. | ||
* Disabled actors cannot be forced to activate objects via a scripted [[Activate]] function. | * Disabled actors cannot be forced to activate objects via a scripted [[Activate]] function. | ||
* {{Disable State and Parent Ref}} | |||
==See Also== | ==See Also== |
Revision as of 18:04, 2 April 2008
Syntax:
Disable
Disables the calling object. Disabled objects are not loaded in the world, disabled actors do not process their AI, but scripts do run on disabled objects.
Notes
- Disable does not remove objects from the game, just stops them from rendering. Do not rely on Disable to save on performance by removing objects.
- Disabled actors cannot be forced to activate objects via a scripted Activate function.
- Does not work on objects with a parent ref. You will have to use the function on the parent ref instead. Use GetParentRef to find the parent ref. There is currently no function to determine the "Enable State to Opposite of Parent" flag.