Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIDangerReaction_DamageTaken.c
Go to the documentation of this file.
3{
4 override bool PerformReaction(notnull SCR_AIUtilityComponent utility, notnull SCR_AIThreatSystem threatSystem, AIDangerEvent dangerEvent, int dangerEventCount)
5 {
6 if (dangerEvent.GetVictim() != utility.m_OwnerEntity)
7 return false;
8
9 IEntity shooter = dangerEvent.GetObject();
10
11 if (!shooter)
12 return false;
13
14 vector shooterPos = shooter.GetOrigin();
15
16 utility.m_SectorThreatFilter.OnDamageTaken(shooterPos);
17
18 return true;
19 }
20};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Event which gets broadcasted from danger-causing places to AI.
proto external vector GetOrigin()