DayZ 1.24
Loading...
Searching...
No Matches
ManTrigger Class Reference

Trigger only accepting Object which IsMan() More...

Inheritance diagram for ManTrigger:
[legend]
Collaboration diagram for ManTrigger:
[legend]

Protected Member Functions

bool CanAddObjectAsInsider (Object object)
 

Private Member Functions

override void EOnInit (IEntity other, int extra)
 
- Private Member Functions inherited from Trigger
override void OnEnter (Object obj)
 
override void OnLeave (Object obj)
 
void UpdateInsiders (int timeout)
 
void SetParentObject (Hologram projection)
 
void SetParentOwner (PlayerBase player)
 
void OnEnterBeginEvent (TriggerInsider insider)
 
void OnLeaveBeginEvent (TriggerInsider insider)
 
void OnEnter (Object obj)
 
void OnLeave (Object obj)
 
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 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.
 
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
 

Additional Inherited Members

- Private Attributes inherited from Trigger
int m_TriggerUpdateMs
 
Hologram m_ParentObj
 
PlayerBase m_Player
 

Detailed Description

Trigger only accepting Object which IsMan()

Definition at line 2 of file ManTrigger.c.

Member Function Documentation

◆ CanAddObjectAsInsider()

bool ManTrigger::CanAddObjectAsInsider ( Object object)
inlineprotected

Definition at line 9 of file ManTrigger.c.

10 {
11 return object.IsMan();
12 }

◆ EOnInit()

override void ManTrigger::EOnInit ( IEntity other,
int extra )
inlineprivate

Definition at line 4 of file ManTrigger.c.

5 {
6 SetExtents("-2 -2 -2", "2 2 2");
7 }
void SetExtents(vector mins, vector maxs)
Set the size of the Trigger, avoid using SetCollisionBox directly.
Definition Trigger.c:116

References Trigger::SetExtents().


The documentation for this class was generated from the following file: