Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_OrientToSeaNormalContextAction.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleUIInfo
(
"m_Info"
)]
2
class
SCR_OrientToSeaNormalContextAction
:
SCR_SelectedEntitiesContextAction
3
{
4
override
bool
CanBeShown(
SCR_EditableEntityComponent
selectedEntity, vector cursorWorldPosition,
int
flags)
5
{
6
return
selectedEntity !=
null
;
7
}
8
9
override
bool
CanBePerformed(
SCR_EditableEntityComponent
selectedEntity, vector cursorWorldPosition,
int
flags)
10
{
11
return
true
;
12
}
13
14
override
void
Perform(
SCR_EditableEntityComponent
selectedEntity, vector cursorWorldPosition)
15
{
16
GenericEntity
owner = selectedEntity.GetOwner();
17
if
(!owner)
return
;
18
19
vector transform[4];
20
owner.GetTransform(transform);
21
22
//--- Reset pitch and roll, but preserve yaw
23
vector angles = Math3D.MatrixToAngles(transform);
24
Math3D.AnglesToMatrix(Vector(angles[0], 0, 0), transform);
25
26
owner.SetTransform(transform);
27
}
28
};
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_OrientToSeaNormalContextAction
Definition:
SCR_OrientToSeaNormalContextAction.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_OrientToSeaNormalContextAction.c
Generated by
1.8.17