![]() |
Public API Reference |
This interface is implemented by the trigger that fires when a certain sector is entered. More...
#include <tools/triggers.h>
Public Member Functions | |
| virtual void | SetEntityParameter (const char *entity, const char *tag=0)=0 |
| Set the name of the entity containing the pccamera or pcmesh property class on which this trigger will fire. | |
| virtual void | SetSectorParameter (const char *sector)=0 |
| Set the name of the sector on which this trigger will fire as soon as the camera enters that sector. | |
This interface is implemented by the trigger that fires when a certain sector is entered.
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.entersector' for the version that listens to camera changes and 'cel.triggers.meshentersector' for the version that listens to mesh changes.
In XML, factories recognize the following attributes on the 'fireon' node:
Definition at line 169 of file triggers.h.
| virtual void iEnterSectorTriggerFactory::SetEntityParameter | ( | const char * | entity, |
| const char * | tag = 0 |
||
| ) | [pure virtual] |
Set the name of the entity containing the pccamera or 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 iEnterSectorTriggerFactory::SetSectorParameter | ( | const char * | sector | ) | [pure virtual] |
Set the name of the sector on which this trigger will fire as soon as the camera enters that sector.
| sector | is the name of the entity or a parameter (starts with '$'). |