Arma Reforger Script API
|
Static Public Member Functions | |
static ResourceManager | GetResourceManager () |
Get the ResourceManager object. | |
static WorldEditor | GetWorldEditor () |
Get the WorldEditor object. | |
static WorldEditorAPI | GetWorldEditorAPI () |
Get the World Editor API. | |
static IEntitySource | GetPrefabEditModeEntitySource () |
Return the currently opened Prefab's entity with Edit Prefab button in Resource Manager. | |
static ResourceName | GetPrefabEditModeResourceName () |
Return the currently opened Prefab's entity with Edit Prefab button in Resource Manager. | |
static ResourceName | GetResourceNameFromFile (string absoluteFilePath) |
Get a registered file's ResourceName (requires the .meta file) | |
static array< ResourceName > | GetSelectedDirectories () |
Get selected directories - does not get subdirectories, only selected ones (in their order of selection) | |
static array< ResourceName > | GetSelectedOrOpenedResources (string wantedExtension, array< string > keywords=null) |
Wrapper for the method below. | |
static array< IEntitySource > | GetSelectedWorldEntitySources () |
static array< ResourceName > | GetSelectedOrOpenedResources (array< string > acceptedExtensions=null, array< string > keywords=null) |
Get selected or opened resources. | |
static array< ResourceName > | GetSelectedResources (bool recursive=true) |
Get all ResourceName that are selected in the Resource Browser. | |
static array< ResourceName > | SearchWorkbenchResources (array< string > fileExtensions=null, array< string > searchStrArray=null, string rootPath="", bool recursive=true) |
Search Workbench-available files by extension and filters inside a provided directory. | |
static void | DeleteEntityFromSource (IEntitySource entitySource) |
Delete the entitySource's entity IF it exists \entitySource can be null. | |
static bool | BeginEntityAction () |
Begin an Entity Action in World Editor API if required. | |
static void | EndEntityAction (bool manageEditAction) |
End an Entity Action in World Editor API if required. | |
static array< IEntity > | QueryEntitiesByAABB (notnull World world, vector mins, vector maxs, EQueryEntitiesFlags queryFlags=EQueryEntitiesFlags.ALL) |
Queries entities within an AABB in the world, returns results in an array. | |
static array< IEntity > | QueryEntitiesBySphere (notnull World world, vector worldPos, float radius, EQueryEntitiesFlags queryFlags=EQueryEntitiesFlags.ALL) |
Queries entities within a sphere in the world, returns them in an array. | |
static array< IEntity > | TraceMoveEntitiesBySphere (notnull World world, notnull TraceSphere traceSphere) |
Return all entities found by moved sphere trace. | |
static array< IEntity > | TracePositionEntitiesBySphere (notnull World world, notnull TraceSphere traceSphere) |
Return all entities found by sphere trace. | |
Static Protected Member Functions | |
static bool | QueryEntitiesCallbackMethod (IEntity e) |
QueryEntitiesCallback method used for Entity querying. | |
static bool | TraceCallbackMethod (notnull IEntity e, vector start="0 0 0", vector dir="0 0 0") |
TraceEntitiesCallback method used for World tracing. | |
Static Protected Attributes | |
static ref array< IEntity > | s_aTempEntities |
|
static |
Begin an Entity Action in World Editor API if required.
|
static |
Delete the entitySource's entity IF it exists \entitySource can be null.
|
static |
End an Entity Action in World Editor API if required.
[in] | manageEditAction | if World Editor Entity Action should be terminated, result of an earlier BeginEntityAction call |
|
static |
Return the currently opened Prefab's entity with Edit Prefab button in Resource Manager.
|
static |
Return the currently opened Prefab's entity with Edit Prefab button in Resource Manager.
|
static |
Get the ResourceManager object.
|
static |
Get a registered file's ResourceName (requires the .meta file)
|
static |
Get selected directories - does not get subdirectories, only selected ones (in their order of selection)
|
static |
Get selected or opened resources.
[in] | acceptedExtensions | accepted extensions (case-insensitive) |
[in] | keywords | words that should be present in the file name (case-insensitive) |
|
static |
Wrapper for the method below.
[in] | wantedExtension | (case-insensitive) |
[in] | keywords | words that should be present in the file name (case-insensitive) |
|
static |
Get all ResourceName that are selected in the Resource Browser.
[in] | recursive | true to get a selected directory's files, false to stop at the directory |
|
static |
|
static |
Get the WorldEditor object.
|
static |
Get the World Editor API.
|
static |
Queries entities within an AABB in the world, returns results in an array.
[in] | world | represents the game's environment in which entities exist, used for querying entities within an Axis-Aligned Bounding Box |
[in] | mins | min bounds for an axis-aligned bounding box (AABB) query in 3D space |
[in] | maxs | max bounds for an axis-aligned bounding box (AABB) query in 3D space |
[in] | queryFlags | is an enumeration representing filter options for entity query in AABB - see BaseWorld.QueryEntitiesByAABB |
|
static |
Queries entities within a sphere in the world, returns them in an array.
[in] | world | World represents the game's environment in which entities exist, used for querying entities within a specified sphere radius in the method |
[in] | worldPos | represents the center point for the sphere query in 3D space |
[in] | radius | represents the distance from the center point (worldPos) within which entities are searched in the method |
[in] | queryFlags | specifies query flags for entity selection criteria - see BaseWorld.QueryEntitiesBySphere |
|
staticprotected |
QueryEntitiesCallback method used for Entity querying.
|
static |
Search Workbench-available files by extension and filters inside a provided directory.
[in] | fileExtensions | |
[in] | searchStrArray | |
[in] | rootPath | format $addon:Workbench/Directory |
[in] | recursive |
|
staticprotected |
TraceEntitiesCallback method used for World tracing.
|
static |
Return all entities found by moved sphere trace.
[in] | traceSphere | |
[in] | world |
|
static |
Return all entities found by sphere trace.
[in] | traceSphere | |
[in] | world |
|
staticprotected |