Triggers
From Computing and Software Wiki
(6 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
Triggers are invisible geometric objects that trigger controllers, scripts, entities and other things in the game when the player goes through them. | Triggers are invisible geometric objects that trigger controllers, scripts, entities and other things in the game when the player goes through them. | ||
<br> | <br> | ||
- | |||
__TOC__ | __TOC__ | ||
Line 7: | Line 6: | ||
Simply load up the world editor, then click on Page in the top menu. From here select Triggers, which will enable the triggers panel to the left of the screen. | Simply load up the world editor, then click on Page in the top menu. From here select Triggers, which will enable the triggers panel to the left of the screen. | ||
- | + | <br> | |
+ | <br> | ||
[[Image:TrigMenu.JPG]] | [[Image:TrigMenu.JPG]] | ||
From this menu one can choose between a Box, Cylinder or Sphere trigger area. Lets choose a Box area and simply draw it on the screen | From this menu one can choose between a Box, Cylinder or Sphere trigger area. Lets choose a Box area and simply draw it on the screen | ||
- | + | <br> | |
+ | <br> | ||
[[Image:SmplTrig.JPG]] | [[Image:SmplTrig.JPG]] | ||
+ | |||
+ | ==Connecting Trigger to an Object== | ||
+ | |||
+ | In order for the trigger to activate anything it needs to be connected to an object, unless you are using Display Text, Insert Image, Move Image and Remove Image, in which case a trigger area along with scrip editing described in the Script Editor section of this Wiki would be enough. If you are doing something more fancy such as activating a controller of an object then the trigger has to be connected to that object. To do this first have your objects created, then create the trigger area after which click on the trigger area and on the Tool and Toggle Buttons click the Connect Nodes selector. | ||
+ | <br> | ||
+ | <br> | ||
+ | [[Image:ConNodes.JPG]] | ||
+ | |||
+ | After that click on the connector that appeared, which by default says TARG. Then click on the object you want to connect the trigger to and hit CTRL-L. This will link the connector to the object. | ||
+ | <br> | ||
+ | <br> | ||
+ | [[Image:ConTarg.JPG]] | ||
+ | |||
+ | |||
+ | ==Using Connected Trigger== | ||
+ | After the trigger is connect any action applied to the trigger through the Script Editor that requires a target can be directed to connector TARG. For example Waking a controller that is applied to the object TARG is connected to. (Please refer to the Script Editor part of the Wiki for information onhow to get to the Script Editor) | ||
+ | <br> | ||
+ | <br> | ||
+ | [[Image:Editor.JPG]] |
Current revision as of 00:23, 20 March 2008
Triggers are invisible geometric objects that trigger controllers, scripts, entities and other things in the game when the player goes through them.
Contents |
Creating a Trigger
Simply load up the world editor, then click on Page in the top menu. From here select Triggers, which will enable the triggers panel to the left of the screen.
From this menu one can choose between a Box, Cylinder or Sphere trigger area. Lets choose a Box area and simply draw it on the screen
Connecting Trigger to an Object
In order for the trigger to activate anything it needs to be connected to an object, unless you are using Display Text, Insert Image, Move Image and Remove Image, in which case a trigger area along with scrip editing described in the Script Editor section of this Wiki would be enough. If you are doing something more fancy such as activating a controller of an object then the trigger has to be connected to that object. To do this first have your objects created, then create the trigger area after which click on the trigger area and on the Tool and Toggle Buttons click the Connect Nodes selector.
After that click on the connector that appeared, which by default says TARG. Then click on the object you want to connect the trigger to and hit CTRL-L. This will link the connector to the object.
Using Connected Trigger
After the trigger is connect any action applied to the trigger through the Script Editor that requires a target can be directed to connector TARG. For example Waking a controller that is applied to the object TARG is connected to. (Please refer to the Script Editor part of the Wiki for information onhow to get to the Script Editor)