Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_OrientToTerrainContextAction.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleUIInfo
(
"m_Info"
)]
2
class
SCR_OrientToTerrainContextAction
:
SCR_SelectedEntitiesContextAction
3
{
4
override
bool
CanBeShown(
SCR_EditableEntityComponent
selectedEntity, vector cursorWorldPosition,
int
flags)
5
{
6
return
true
;
7
}
8
9
override
bool
CanBePerformed(
SCR_EditableEntityComponent
selectedEntity, vector cursorWorldPosition,
int
flags)
10
{
11
//--- ToDo: Only when not currently oriented?
12
return
true
;
13
}
14
15
override
void
Perform(
SCR_EditableEntityComponent
selectedEntity, vector cursorWorldPosition)
16
{
17
GenericEntity
owner = selectedEntity.GetOwner();
18
if
(!owner)
return
;
19
20
vector transform[4];
21
selectedEntity.GetTransform(transform);
22
23
if
(!
SCR_TerrainHelper
.OrientToTerrain(transform, owner.GetWorld()))
return
;
24
25
selectedEntity.SetTransform(transform);
26
}
27
};
SCR_TerrainHelper
Definition:
SCR_TerrainHelper.c:1
GenericEntity
SCR_GenericBoxEntityClass GenericEntity
SCR_EditableEntityComponent
Definition:
SCR_EditableEntityComponent.c:13
SCR_SelectedEntitiesContextAction
Definition:
SCR_SelectedEntitiesContextAction.c:10
SCR_BaseContainerCustomTitleUIInfo
void SCR_BaseContainerCustomTitleUIInfo(string propertyName, string format="%1")
Definition:
Attributes.c:788
SCR_OrientToTerrainContextAction
Definition:
SCR_OrientToTerrainContextAction.c:2
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
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Editor
Containers
Actions
ContextActions
SCR_OrientToTerrainContextAction.c
Generated by
1.8.17