Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Nov 12, 2008, 11:17:56 PM (16 years ago)
Author:
bknecht
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/Trigger

    v1 v2  
    7676
    7777=== 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 of inherited. This is established by using a ClassTreeMask.
     78You 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.
    7979
    8080Just 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.
    8181
    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.
     82To 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.
    8383
    8484== Event Trigger ==