![]() |
Public API Reference |
This interface is implemented by the trigger that fires when a mesh becomes visible. More...
#include <tools/triggers.h>
Public Member Functions | |
| virtual void | SetChecktimeParameter (const char *time)=0 |
| Set the interval (in milliseconds) after which this trigger will check visibility again. | |
| virtual void | SetEntityParameter (const char *entity, const char *tag=0)=0 |
| Set the name of the source entity containing the pcmesh property class on which this trigger will fire. | |
| virtual void | SetOffsetParameter (const char *offsetx, const char *offsety, const char *offsetz)=0 |
| Optional offset parameter. | |
| virtual void | SetRadiusParameter (const char *radius)=0 |
| Set the maximum radius for visibility checking. | |
| virtual void | SetTargetEntityParameter (const char *entity, const char *tag=0)=0 |
| Set the name of the target entity containing the pcmesh property class on which this trigger will fire. | |
This interface is implemented by the trigger that fires when a mesh becomes visible.
You can query this interface from the trigger factory if you want to manually control this factory as opposed to loading its definition from an XML document.
The predefined name of this trigger type is 'cel.triggers.watch'.
In XML, factories recognize the following attributes on the 'fireon' node:
Definition at line 567 of file triggers.h.
| virtual void iWatchTriggerFactory::SetChecktimeParameter | ( | const char * | time | ) | [pure virtual] |
Set the interval (in milliseconds) after which this trigger will check visibility again.
By default this is equal to 1000 which means there will be a check every second.
| time | is the interval in milliseconds or a parameter (starts with '$'). |
| virtual void iWatchTriggerFactory::SetEntityParameter | ( | const char * | entity, |
| const char * | tag = 0 |
||
| ) | [pure virtual] |
Set the name of the source entity containing the pcmesh property class on which this trigger will fire.
| entity | is the name of the entity or a parameter (starts with '$'). |
| tag | is the optional tag of the entity or a parameter (starts with '$'). |
| virtual void iWatchTriggerFactory::SetOffsetParameter | ( | const char * | offsetx, |
| const char * | offsety, | ||
| const char * | offsetz | ||
| ) | [pure virtual] |
Optional offset parameter.
This offset will be added to the position of the start and target locations.
| offsetx | is the x offset or a parameter (starts with '$'). |
| offsety | is the y offset or a parameter (starts with '$'). |
| offsetz | is the z offset or a parameter (starts with '$'). |
| virtual void iWatchTriggerFactory::SetRadiusParameter | ( | const char * | radius | ) | [pure virtual] |
Set the maximum radius for visibility checking.
By default this is equal to infinity.
| radius | is the maximum radius or a parameter (starts with '$'). |
| virtual void iWatchTriggerFactory::SetTargetEntityParameter | ( | const char * | entity, |
| const char * | tag = 0 |
||
| ) | [pure virtual] |
Set the name of the target entity containing the pcmesh property class on which this trigger will fire.
| entity | is the name of the entity or a parameter (starts with '$'). |
| tag | is the optional tag of the entity or a parameter (starts with '$'). |