Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIDecoTestCharacterWounded.c
Go to the documentation of this file.
1 /*
2 Returns true character is wounded.
3 */
4 class SCR_AIDecoTestCharacterWounded : DecoratorTestScripted
5 {
6  protected override bool TestFunction(AIAgent agent, IEntity controlled)
7  {
8  if (!controlled)
9  return false;
10 
11  return SCR_AIDamageHandling.IsCharacterWounded(controlled);
12  }
13 };
SCR_AIDamageHandling
Definition: SCR_AIUtils.c:246
SCR_AIDecoTestCharacterWounded
Definition: SCR_AIDecoTestCharacterWounded.c:4