Complete Example Scripts: Difference between revisions

Jump to navigation Jump to search
imported>Evernewjoy
imported>Evernewjoy
Line 54: Line 54:
* Non-player triggers can be used by changing the == to a != in the script above, to do things to other actors like restoring their health or moving them around (but not affecting player if player walks through the trigger)
* Non-player triggers can be used by changing the == to a != in the script above, to do things to other actors like restoring their health or moving them around (but not affecting player if player walks through the trigger)


===Cycle Through an Array of Objects and Perform an Action on each Object===
===Cycle Through an Array of Objects and Perform an Action on Each Object(FormLists)===


This example script cycles through an array of objects, known as a formlist, and enables them all if they are disabled, and disables them if they are enabled, each time the player character walks through a chosen trigger volume.  
This example script cycles through an array of objects, known as a formlist, and enables them all if they are disabled, and disables them if they are enabled, each time the player character walks through a chosen trigger volume.  
Anonymous user

Navigation menu