Arma Reforger Script API
|
Static Public Member Functions | |
static Managed | FindComponent (notnull IEntity entity, TypeName componentType, SCR_EComponentFinderQueryFlags queryFlags=SCR_EComponentFinderQueryFlags.ENTITY|SCR_EComponentFinderQueryFlags.SLOTS) |
Function to find specific component on given entity or entity parent/slottedEntities/siblings/rootparents etc. | |
static int | GetChildrenCount (IEntity parent, bool recursive=false) |
Returns number of children the input entity has. | |
static void | DeleteEntityAndChildren (IEntity entity) |
Deletes input parent entity and all children Just a wrapper for RplComponent.DeleteRplEntity(entity, false);. | |
static vector | GetEntitySize (notnull IEntity entity) |
Returns the size of an entity from its bounding box. | |
static vector | GetEntityCenterWorld (notnull IEntity entity) |
Returns the center of the entity from its bounding box in world coordinates. | |
static float | GetEntityRadius (notnull IEntity entity) |
Returns the radius of the entity based on the size of its bounding box. | |
static void | GetHierarchyEntityList (notnull IEntity entity, notnull inout array< IEntity > output) |
Returns a list of all entities in the hierarchy. | |
static void | SnapToGround (notnull IEntity entity, array< IEntity > excludeArray=null, float maxLength=10, vector startOffset="0 0 0", bool onlyStatic=false) |
static void | OrientUpToVector (vector newUp, inout vector mat[4]) |
static IEntity | GetMainParent (IEntity entity, bool self=false) |
Returns the main parent of the input entity. | |
static IEntity | GetPlayer () |
Return the player-controlled entity See EntityUtils.GetPlayer() | |
static bool | IsPlayer (IEntity entity) |
Check if the provided entity is the local player See EntityUtils.GetPlayer() | |
static bool | IsAPlayer (IEntity entity) |
Check if the provided entity is -a- player - a human-controlled entity See EntityUtils.IsPlayer() | |
static void | SetHierarchyTransform (notnull IEntity entity, vector newTransform[4]) |
Set transform for the whole hierarchy. | |
static bool | GetRelativeLocalTransform (notnull IEntity owner, notnull IEntity member, out vector relativeTransform[4]) |
Get relative local transform from member to owner. | |
Static Protected Member Functions | |
static bool | OnlyStaticCallback (notnull IEntity entity) |
static void | SetHierarchyChildTransform (notnull IEntity entity, vector oldTransform[4], vector newTransform[4], bool recursive=true) |
Set child transformation. | |
|
static |
Deletes input parent entity and all children Just a wrapper for RplComponent.DeleteRplEntity(entity, false);.
entity |
|
static |
Function to find specific component on given entity or entity parent/slottedEntities/siblings/rootparents etc.
entity | Entity to use to find the component on |
componentType | Component Class to find |
queryFlags | Where to find the component on. It can have multiple flags and is checked in order of lowest to highest flag value |
|
static |
Returns number of children the input entity has.
parent | |
recursive | checks children's children if set to true, the number of direct children otherwise |
|
static |
Returns the center of the entity from its bounding box in world coordinates.
entity |
|
static |
Returns the radius of the entity based on the size of its bounding box.
entity | the entity to measure |
|
static |
Returns the size of an entity from its bounding box.
entity |
|
static |
Returns a list of all entities in the hierarchy.
entity | ||
[in,out] | output |
|
static |
Returns the main parent of the input entity.
entity | Entity to get the main parent from |
self | return entity if there is no parent, false otherwise - default = false |
|
static |
Return the player-controlled entity See EntityUtils.GetPlayer()
|
static |
Get relative local transform from member to owner.
Currently supports single hierarchy only.
[in] | owner | Starting entity. Read as IEntity for convenience, but it has to be BaseGameEntity. |
[in] | member | Ending entity. Has to be BaseGameEntity if it's not parent of owner. Must be in the same hierarchy as owner. |
[out] | relativeTransform | transformation from member to owner local space |
|
static |
Check if the provided entity is -a- player - a human-controlled entity See EntityUtils.IsPlayer()
entity |
|
static |
Check if the provided entity is the local player See EntityUtils.GetPlayer()
entity |
|
staticprotected |
entity |
|
static |
newUp | ||
[in,out] | mat |
|
staticprotected |
Set child transformation.
entity | |
oldTransform | |
newTransform | |
recursive |
|
static |
Set transform for the whole hierarchy.
entity | |
newTransform |
|
static |
entity | the entity to snap to the ground |
excludeArray | |
maxLength | |
startOffset | |
onlyStatic | only check static physics |