Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorHoveredEntityIsSelectedActionCondition.c
Go to the documentation of this file.
1 
3 [BaseContainerProps(), BaseContainerCustomStringTitleField("Hovered entity selected")]
5 {
6  override bool IsAvailable(SCR_AvailableActionsConditionData data)
7  {
8  if (!data)
9  return false;
10 
12 
13  if (!entity)
14  return GetReturnResult(false);
15 
16  set <SCR_EditableEntityComponent> entities = new set <SCR_EditableEntityComponent>;
17  SCR_BaseEditableEntityFilter.GetEnititiesStatic(entities, EEditableEntityState.SELECTED);
18 
19  if (entities.Contains(entity))
20  return GetReturnResult(true);
21 
22  SCR_EditableEntityComponent parent = entity.GetParentEntity();
23  if (!parent)
24  return GetReturnResult(false);
25 
26  return GetReturnResult(entities.Contains(parent));
27  }
28 };
EEditableEntityState
EEditableEntityState
Definition: EEditableEntityState.c:37
SCR_AvailableActionsConditionData
Definition: SCR_AvailableActionsConditionData.c:5
BaseContainerCustomStringTitleField
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERENT VERSION ONLY!")
Definition: SCR_HitZoneGroupNameHolder.c:27
SCR_AvailableActionCondition
A single available action condition representation.
Definition: SCR_AvailableActionsCondition.c:3
SCR_EditorHoveredEntityIsSelectedActionCondition
Returns true if a entity is hovered and that entity is selected.
Definition: SCR_EditorHoveredEntityIsSelectedActionCondition.c:4
SCR_BaseEditableEntityFilter
Definition: SCR_BaseEditableEntityFilter.c:13
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468