| | 96 | === DistanceMultiTrigger === |
| | 97 | |
| | 98 | A DistanceMultiTrigger is the MultiTrigger equivalent of the DistanceTrigger and works just the same way. It triggers (now separately for each object triggering it, since it's a MultiTrigger) whenever an object that is a target of the DistanceMultiTrigger is in the specified range. |
| | 99 | [[BR]]Two additional parameters can be specified for the DistanceMultiTrigger are the 'distance', which defines the maximum distance at which an object still triggers the DistanceMultiTrigger, and the 'targetname'. |
| | 100 | [[BR]]Setting the 'targename' puts the DistanceMultiTrigger in single-target mode. In this mode the DistanceMultiTrigger can only be triggered by objects that have a DistanceTriggerBeacon with the name specified by 'targetname' directly attached. For the single-targte mode to work the target of the DistanceMultiTrigger hast to be set to 'DistanceTriggerBeacon'. |
| | 101 | [[BR]][[BR]] |
| | 102 | A common usage (without DistanceTriggerBeacon) would look like this: |
| | 103 | {{{ |
| | 104 | <DistanceMultiTrigger position="0,0,0" switch="true" target="Pawn" distance="20" /> |
| | 105 | }}} |
| | 106 | With DistanceTriggerBeacon it would look like this: |
| | 107 | {{{ |
| | 108 | <DistanceMultiTrigger position="0,0,0" target="DistanceMultiTrigger" targetname="beacon1" distance="30" /> |
| | 109 | }}} |
| | 110 | |