DayZ 1.24
Loading...
Searching...
No Matches
AreaDamageLoopedDeferred_NoVehicle.c
Go to the documentation of this file.
1
3{
4 override bool OnEvaluateDamageEx(TriggerInsider insider, float deltaTime)
5 {
6 // For case where player is inside vehicle
7 if (insider.GetObject().IsMan())
8 {
10 if (playerInsider.GetCommand_Vehicle())
11 return false;
12 }
13
14 return super.OnEvaluateDamageEx(insider, deltaTime);
15 }
16}
A particular version of the deferred loop used to not damage players inside vehicles.
override bool OnEvaluateDamageEx(TriggerInsider insider, float deltaTime)
Deferred version of AreaDamageLooped.
The object which is in a trigger and its metadata.
Definition Trigger.c:3
Object GetObject()
Definition Trigger.c:28