Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 2 and Version 3 of code/doc/Trigger


Ignore:
Timestamp:
Aug 31, 2010, 11:28:25 PM (14 years ago)
Author:
dafrick
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/Trigger

    v2 v3  
    99
    1010At the beginning the Trigger is not triggered and not active.
     11
     12An extension of Triggers is the [[wiki:MultiTrigger]] class, which has a distinct state for each object that can trigger it.
    1113
    1214== Basic Functionality ==
     
    8082Just 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.
    8183
    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.
     84To 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 ===
     87Setting 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'.
    8388
    8489== Event Trigger ==