![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Static Protected Member Functions | |
| static void | SetHierarchyChildVelocity (notnull IEntity ent, vector newVelocity, bool recursive=true) |
| Called from SetHierarchyVelocity. | |
| static void | SetHierarchyVelocity (notnull IEntity ent, vector newVelocity) |
| Set linear velocity for whole hierarchy. | |
| static void | SetHierarchyChildAngularVelocity (notnull IEntity ent, vector newAngularVelocity, IEntity entFrom, bool recursive=true) |
| Called from SetHierarchyAngularVelocity. | |
| static void | SetHierarchyAngularVelocity (notnull IEntity ent, vector newAngularVelocity) |
| Set angular velocity for whole hierarchy. | |
| static void | SetHierarchyChildBodyActive (notnull IEntity ent, ActiveState activeState, bool recursive=true, bool resetVelocity=false) |
| Called from SetHierarchyBodyActive. | |
| static void | SetHierarchyBodyActive (notnull IEntity ent, ActiveState activeState, bool resetVelocity=false) |
| Sets physics active state for whole hierarchy. | |
| static bool | IsAnyInherited (notnull IEntity entity, array< typename > typenames) |
| Returns true if the given entity is inherited from list of typesnames given as argument. | |
| static bool | ApplyDamage (IEntity entity, IEntity weapon, float dmg, EDamageType dmgType, string hitZone, SurfaceProperties surface, int nodeIdx) |
| static ActionsManagerComponent | FindActionsManagerComponent (IEntity entity, bool activeOnly=true) |
| static SCR_EditorActionsManagerComponent | FindEditorActionsManagerComponent (IEntity entity) |
| static bool | GetModelAndRemapFromResource (ResourceName resourcePath, out ResourceName modelPath, out string remap) |
| Read the input resource and returns whether a model was successfully found, filling the output model and remap paths. | |
| static bool | GetResourceContainsComponent (ResourceName resourcePath, string componentClassName, out bool isPrefab) |
| Read the input resource and returns whether it contains a component on input name, filling whether the resource is a prefab. | |
| static bool | IsEditMode () |
| static bool | IsEditMode (notnull IEntity entity) |
| static vector | ProjWorldEditorMouseScreenToWorld (GenericEntity referenceEntity) |
| static bool | TeleportLocalPlayer (vector worldPosition, SCR_EPlayerTeleportedReason teleportReason=SCR_EPlayerTeleportedReason.DEFAULT) |
| static bool | TeleportPlayer (int playerId, vector worldPosition, SCR_EPlayerTeleportedReason teleportReason=SCR_EPlayerTeleportedReason.DEFAULT) |
| static void | DrawMatrix (vector matrix[4], float scale=1, ShapeFlags flags=ShapeFlags.ONCE|ShapeFlags.NOZBUFFER, int colorX=Color.RED, int colorY=Color.GREEN, int colorZ=Color.BLUE) |
| static void | DrawTrace (TraceParam trace, float traceCoef=-1, ShapeFlags flags=ShapeFlags.ONCE|ShapeFlags.NOZBUFFER|ShapeFlags.NOOUTLINE, int colorEnd=Color.BLACK, int colorIntersect=Color.PINK) |
| static void | SetMaterial (IEntity entity, ResourceName material, bool recursively=true) |
| static bool | IsChangedMouseAndKeyboard (EInputDeviceType oldDevice, EInputDeviceType newDevice) |
| static ResourceName | GetRootWorld (ResourceName worldPath=ResourceName.Empty) |
| static ResourceName | GetResourceName (string path) |
| static int | GetFrequencies (SCR_GadgetManagerComponent gadgetManager, out notnull set< int > outFrequencies) |
| static bool | IsAdminRole (EPlayerRole role) |
| static bool | IsAdmin (int playerID) |
| static bool | IsAdmin () |
| static ResourceName | GetPrefabAttributeResource (notnull IEntity entity, string containerType, string attributeName) |
| static bool | IsPositionWithinTerrainBounds (vector pos) |
Contains various useful global script functions
Definition at line 6 of file Functions.c.
|
inlinestaticprotected |
Keep that as the last check
check if the entity has the damage manager component
no hitzone given, use the default one if exist
Definition at line 1347 of file Functions.c.
|
inlinestaticprotected |
Draw lines representing trace param.
| trace | Trace param |
| traceCoef | Trace coef calculated e.g., by BaseWorld.TraceMove |
| flags | Shape flags |
| colorEnd | Color of the line going from intersection point to TraceParam.End |
| colorIntersect | Color of the line going from TraceParam.Start to intersection point |
Definition at line 1768 of file Functions.c.
|
inlinestaticprotected |
Check whether entity has actions manager and return it if it exists.
| entity | The entity to find the actions manager component on. |
Definition at line 1417 of file Functions.c.
|
inlinestaticprotected |
Check whether entity has editor actions manager and return it if it exists.
| entity | The entity to find the actions manager component on. |
Definition at line 1440 of file Functions.c.
|
inlinestaticprotected |
Get all frequencies entity with given gadget manager listens to.
| gadgetManager | Gadget manager | |
| [out] | outFrequencies | List to be filled with unique frequencies |
Definition at line 1884 of file Functions.c.
|
inlinestaticprotected |
Read the input resource and returns whether a model was successfully found, filling the output model and remap paths.
Definition at line 1455 of file Functions.c.
|
inlinestaticprotected |
Get attribute resourceName from a specified component of the entity's prefab
| entity | Entity to get resourceName for |
| containerType | Name of the container, for example "MeshObject" |
| attributeName | Name of the attribute, for example "Object" |
Definition at line 1953 of file Functions.c.
|
inlinestaticprotected |
Read the input resource and returns whether it contains a component on input name, filling whether the resource is a prefab.
Definition at line 1522 of file Functions.c.
|
inlinestaticprotected |
Get resource name of a file on given path. The file must exist and have meta file, otherwise empty string is returned!
| path | File path |
Definition at line 1866 of file Functions.c.
|
inlinestaticprotected |
Get path to the root world. If the world is a sub-scene, it will go through all its ancestors to find the root.
| worldPath | Checked world. When empty, current world will be used. |
Definition at line 1841 of file Functions.c.
|
inlinestaticprotected |
Check if local player is an admin.
Definition at line 1938 of file Functions.c.
Check if given player is an admin.
| playerID | ID of queried player |
Definition at line 1927 of file Functions.c.
|
inlinestaticprotected |
Check if given player role has admin rights.
| role | Player role |
Definition at line 1916 of file Functions.c.
|
inlinestaticprotected |
Returns true if the given entity is inherited from list of typesnames given as argument.
Definition at line 1335 of file Functions.c.
|
inlinestaticprotected |
Check if the change triggered by GetGame().OnInputDeviceUserChangedInvoker() is only between mouse and keyboard. Used in scripts which need to reset some variables when switching from mouse+keyboard and gamepad, but not when switching just between mouse and keyboard.
| oldDevice | Previously active device |
| newDevice | Currently active device |
Definition at line 1829 of file Functions.c.
|
inlinestaticprotected |
Check if the game is running in edit mode.
Definition at line 1566 of file Functions.c.
Check if the entity is running in edit mode.
| entity | Entity whose world will be checked |
Definition at line 1576 of file Functions.c.
Checks if provided position is within terrain bounds and over the terrain surface
| [in] | pos | position in world space |
Definition at line 1981 of file Functions.c.
|
inlinestaticprotected |
Calculates the world direction of the mouse cursor projected into world space in the World Editor
| referenceEntity | Entity to get the world, camera, and editor API from |
Definition at line 1586 of file Functions.c.
|
inlinestaticprotected |
Set angular velocity for whole hierarchy.
Definition at line 1262 of file Functions.c.
|
inlinestaticprotected |
Sets physics active state for whole hierarchy.
Definition at line 1306 of file Functions.c.
|
inlinestaticprotected |
Called from SetHierarchyAngularVelocity.
Definition at line 1233 of file Functions.c.
|
inlinestaticprotected |
Called from SetHierarchyBodyActive.
Definition at line 1278 of file Functions.c.
|
inlinestaticprotected |
Called from SetHierarchyVelocity.
Definition at line 1194 of file Functions.c.
|
inlinestaticprotected |
Set linear velocity for whole hierarchy.
Definition at line 1214 of file Functions.c.
|
inlinestaticprotected |
Set material to an entity.
| entity | Affected entity |
| material | Material to be applied |
| recursively | True to apply the material also to children |
Definition at line 1793 of file Functions.c.
|
inlinestaticprotected |
Teleport local player to given position.
| worldPosition | World position |
| teleportReason | Dictates the notifcation the player gets when teleported. DEFAULT reason has no notification associated with it |
Definition at line 1625 of file Functions.c.
|
inlinestaticprotected |
Teleport player to given position.
| playerId | ID of teleported player |
| worldPosition | World position |
| teleportReason | Dictates the notifcation the player gets when teleported. DEFAULT reason has no notification associated with it |
Definition at line 1638 of file Functions.c.