Changes between Version 2 and Version 3 of code/doc/Trigger
- Timestamp:
- Aug 31, 2010, 11:28:25 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/Trigger
v2 v3 9 9 10 10 At the beginning the Trigger is not triggered and not active. 11 12 An extension of Triggers is the [[wiki:MultiTrigger]] class, which has a distinct state for each object that can trigger it. 11 13 12 14 == Basic Functionality == … … 80 82 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 83 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. 84 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. 85 86 === Targetname === 87 Setting the 'targename' puts the DistanceTrigger in single-target mode. In this mode the DistanceTrigger can only be triggered by objects that have a DistanceTriggerBeacon with the name specified by 'targetname' directly attached. For the single-target mode to work the target of the DistanceMultiTrigger has to be set to 'DistanceTriggerBeacon'. 83 88 84 89 == Event Trigger ==