Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EditableCharacterInteraction.c
Go to the documentation of this file.
3{
4 override bool CanSetParent(EEditableEntityType parentType, EEditableEntityFlag parentFlags, EEditableEntityInteractionFlag interactionFlags = int.MAX)
5 {
6 //--- Killed characters can be only in root
7 if (!SCR_Enum.HasFlag(interactionFlags, EEditableEntityInteractionFlag.ALIVE))
8 return parentType == ROOT;
9
10 if (parentType == ROOT)
11 return true;
12
13 //--- Cannot move players to groups
14 if (parentType != EEditableEntityType.VEHICLE && !SCR_Enum.HasFlag(interactionFlags, EEditableEntityInteractionFlag.NON_PLAYABLE))
15 return false;
16
17 //--- AI-compatible target
18 return parentType == EEditableEntityType.CHARACTER
19 || parentType == EEditableEntityType.GROUP
20 || parentType == EEditableEntityType.VEHICLE;
21 }
22};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
EEditableEntityType
Defines type of SCR_EditableEntityComponent. Assigned automatically based on IEntity inheritance.
EEditableEntityFlag
Unique flags of the entity.
EEditableEntityInteractionFlag
Details of entity interaction.
@ MAX