Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 4 and Version 5 of code/doc/MultiTrigger


Ignore:
Timestamp:
Aug 31, 2010, 10:41:26 PM (14 years ago)
Author:
dafrick
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/MultiTrigger

    v4 v5  
    7777== How to use MultiTriggers ==
    7878
    79 == Types of MultiTriggers ==
     79== Sub-types of MultiTriggers ==
    8080
    8181=== EventMultiTrigger ===
     
    9494}}}
    9595
     96=== DistanceMultiTrigger ===
     97
     98A 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]]
     102A common usage (without DistanceTriggerBeacon) would look like this:
     103{{{
     104<DistanceMultiTrigger position="0,0,0" switch="true" target="Pawn" distance="20" />
     105}}}
     106With DistanceTriggerBeacon it would look like this:
     107{{{
     108<DistanceMultiTrigger position="0,0,0" target="DistanceMultiTrigger" targetname="beacon1" distance="30" />
     109}}}
     110
    96111== Classtree ==