Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_HorizontalAlignComponent.c
Go to the documentation of this file.
1[ComponentEditorProps(category: "GameScripted/Compositions", description: "If entity is placed in a slot or converted to editableEntity then the system makes sure that the entity is always horizontally aligned")]
5
6class SCR_HorizontalAlignComponent : ScriptComponent
7{
8 //Force horizontal alignment in WB
9 #ifdef WORKBENCH
10 //------------------------------------------------------------------------------------------------
11 override void _WB_SetTransform(IEntity owner, inout vector mat[4], IEntitySource src)
12 {
13 owner.GetWorldTransform(mat);
14 vector angles = Math3D.MatrixToAngles(mat);
15 angles[1] = 0;
16 angles[2] = 0;
17 Math3D.AnglesToMatrix(angles, mat);
18 }
19 #endif
20}
ref array< string > angles
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
event void _WB_SetTransform(IEntity owner, inout vector mat[4], IEntitySource src)
Editor changed entity transformation matrix source. Do not call editor API here!
proto external void GetWorldTransform(out vector mat[])
See IEntity::GetTransform.