Scripted Trigger. Подробнее...
Защищенные члены | |
override void | OnEnter (Object obj) |
override void | OnLeave (Object obj) |
void | UpdateInsiders (int timeout) |
void | SetParentObject (Hologram projection) |
void | SetParentOwner (PlayerBase player) |
TriggerEvents, backwards compatibility calling | |
Implementation for backwards compatibility with old Trigger system | |
void | OnEnterBeginEvent (TriggerInsider insider) |
void | OnLeaveBeginEvent (TriggerInsider insider) |
DEPRECATED Events | |
left for backwards compatibility | |
void | OnEnter (Object obj) |
void | OnLeave (Object obj) |
TriggerInsider conditions | |
Conditions applied to TriggerInsider for if it can be added or should be removed | |
bool | CanAddObjectAsInsider (Object object) |
Condition whether an Object can be added as TriggerInsider (checked before calling AddInsider) | |
bool | ShouldRemoveInsider (TriggerInsider insider) |
Condition whether a TriggerInsider should still be updated or not (checked in update loop and before adding) | |
bool | ShouldRemoveInsiderNoLeave (TriggerInsider insider) |
Condition whether a TriggerInsider should still be updated or not, skips OnLeaveEvent (checked in update loop and before adding) | |
TriggerInsider processing | |
Logic and processing of adding, removing and updating a TriggerInsider | |
TriggerInsider | CreateInsider (Object obj) |
Used for easily overriding TriggerInsider creation without rewriting AddInsider. | |
void | AddInsider (Object obj) |
Adding of new TriggerInsider. | |
void | RemoveInsider (TriggerInsider insider, int index=-1) |
Removing of TriggerInsider. | |
void | RemoveInsiderByObject (Object object) |
Removing of TriggerInsider through Object. | |
void | UpdateInsiders (int timeout) |
Update the current TriggerInsider inside the Trigger, timeout paramter is deprecated. | |
DEBUGGING | |
General internal debugging functionality | |
override void | OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx) |
Защищенные данные | |
int | m_TriggerUpdateMs |
Hologram | m_ParentObj |
PlayerBase | m_Player |
Закрытые члены | |
void | Trigger () |
ctor | |
void | ~Trigger () |
dtor | |
IEntity events | |
Usage of IEntity events | |
override void | EOnInit (IEntity other, int extra) |
Set the default extents of the Trigger only once it is properly initialized. | |
override void | EOnFrame (IEntity other, float timeSlice) |
When an Object touches the Trigger, we want to register it being inside the Trigger -> Replaced by EOnEnter. | |
override void | EOnEnter (IEntity other, int extra) |
When an Object enters the trigger add it to Insiders. | |
override void | EOnLeave (IEntity other, int extra) |
When an Object exits the trigger remove it from Insiders. | |
Trigger configuration | |
Basic configuration and data API | |
void | SetExtents (vector mins, vector maxs) |
Set the size of the Trigger, avoid using SetCollisionBox directly. | |
float | GetRadius (vector min, vector max) |
Get the radius of the CollisionBox, simply left for backwards compatibility. | |
array< ref TriggerInsider > | GetInsiders () |
Get the current TriggerInsider array, left for backwards compatibility, moved down from ManTrigger. | |
TriggerInsider | GetInsiderForObject (Object object) |
Gets the TriggerInsider for the Object if it exists. | |
int | GetInsiderIndexForObject (Object object) |
Gets the index in m_insiders for the Object. | |
![]() | |
ScriptInvoker | GetOnEnterInvoker () |
ScriptInvoker | GetOnLeaveInvoker () |
void | Enter (TriggerInsider insider) |
void | OnEnterBeginEvent (TriggerInsider insider) |
void | OnEnterServerEvent (TriggerInsider insider) |
void | OnEnterClientEvent (TriggerInsider insider) |
void | OnEnterEndEvent (TriggerInsider insider) |
void | StayStart (int nrOfInsiders) |
void | OnStayStartBeginEvent (int nrOfInsiders) |
void | OnStayStartServerEvent (int nrOfInsiders) |
void | OnStayStartClientEvent (int nrOfInsiders) |
void | OnStayStartEndEvent (int nrOfInsiders) |
void | Stay (TriggerInsider insider, float deltaTime) |
void | OnStayBeginEvent (TriggerInsider insider, float deltaTime) |
void | OnStayServerEvent (TriggerInsider insider, float deltaTime) |
void | OnStayClientEvent (TriggerInsider insider, float deltaTime) |
void | OnStayEndEvent (TriggerInsider insider, float deltaTime) |
void | StayFinish () |
void | OnStayFinishBeginEvent () |
void | OnStayFinishServerEvent () |
void | OnStayFinishClientEvent () |
void | OnStayFinishEndEvent () |
void | Leave (TriggerInsider insider) |
void | OnLeaveBeginEvent (TriggerInsider insider) |
void | OnLeaveServerEvent (TriggerInsider insider) |
void | OnLeaveClientEvent (TriggerInsider insider) |
void | OnLeaveEndEvent (TriggerInsider insider) |
Закрытые данные | |
const int | TIMEOUT = 1000 |
DEPRECATED. | |
ref array< ref TriggerInsider > | m_insiders |
The objects and their metadata which are currently inside the Trigger. | |
![]() | |
ref ScriptInvoker | m_OnEnterInvoker |
ref ScriptInvoker | m_OnLeaveInvoker |
Scripted Trigger.
См. определение в файле Hologram.c строка 1570