Changes between Version 1 and Version 2 of code/doc/Trigger
- Timestamp:
- Nov 12, 2008, 11:17:56 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/Trigger
v1 v2 76 76 77 77 === Targets === 78 You have two possibilities to set the target of the distance trigger. Specify a [wiki:Identifier class name] and the distance trigger will react on every object which belongs to this class either directly o finherited. This is established by using a ClassTreeMask.78 You have two possibilities to set the target of the distance trigger. Specify a [wiki:Identifier class name] and the distance trigger will react on every object which belongs to this class either directly or inherited. This is established by using a ClassTreeMask. 79 79 80 80 Just add an object to the trigger and the trigger will react on exactly this object and no other. This second possibility is however not supported fully and you shouldn't use it. In both cases you can change the targets by adding and removing them. 81 81 82 To set the class name of targets use ''target="!BaseObject"''. Default is ''ControllableEntity''. Note that you cannot set the target to ''Trigger'' as this would result in the trigger triggering itself. Setting the target to ''Trigger'' will therefore be ignored.82 To set the class name of targets use ''target="!BaseObject"''. Default is ''ControllableEntity''. Note that distance triggers always exclude the Trigger class so it won't trigger itself. You can therefore set the target to a parent class of Trigger without experiencing strange behavior. 83 83 84 84 == Event Trigger ==