Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
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
};
flags
SCR_EAIThreatSectorFlags flags
Definition
AIControlComponentSerializer.c:16
angles
ref array< string > angles
Definition
PrefabImporter.c:22
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_BaseContainerCustomTitleUIInfo
class SCR_ArsenalGameModeUIDataHolder SCR_BaseContainerCustomTitleUIInfo("m_UIInfo")
Definition
SCR_ArsenalManagerComponent.c:1752
GenericEntity
Definition
GenericEntity.c:16
IEntity::SetTransform
proto external bool SetTransform(vector mat[4])
IEntity::GetTransform
proto external void GetTransform(out vector mat[])
Math3D
Definition
Math3D.c:13
SCR_EditableEntityComponent
Definition
SCR_EditableEntityComponent.c:14
SCR_OrientToSeaNormalContextAction
Definition
SCR_OrientToSeaNormalContextAction.c:3
SCR_SelectedEntitiesContextAction
Definition
SCR_SelectedEntitiesContextAction.c:11
vector
Definition
vector.c:13
Vector
proto native vector Vector(float x, float y, float z)
scripts
Game
Editor
Containers
Actions
ContextActions
SCR_OrientToSeaNormalContextAction.c
Generated by
1.17.0