| 
    Arma Reforger Script API
    
   | 
 
Static Public Member Functions | |
| static Managed | CreateInstanceFromPrefab (ResourceName prefab, bool printError=false) | 
| Get Managed Instance from prefab.   | |
| static string | GetContainerClassName (ResourceName prefab) | 
| Get class name of the prefab.   | |
| static string | GetContainerClassName (Resource prefabResource) | 
| Get class name of prefab resource.   | |
| static IEntitySource | FindEntitySource (Resource prefabResource) | 
| Get entity source from prefab resource.   | |
| static IEntityComponentSource | FindComponentSource (Resource prefabResource, string componentClassName) | 
| Get component source of given class from prefab resource.   | |
| static IEntityComponentSource | FindComponentSource (Resource prefabResource, TypeName componentClass) | 
| Get component source inherited from given class from prefab resource.   | |
| static int | FindComponentIndex (IEntitySource entitySource, string componentClassName) | 
| Get component index in entity source.   | |
| static int | FindComponentIndex (IEntitySource entitySource, TypeName componentClass) | 
| Get component index in entity source.   | |
| static IEntityComponentSource | FindComponentSource (IEntitySource prefabEntity, string componentClassName) | 
| Get component source of given class from entity source.   | |
| static IEntityComponentSource | FindComponentSource (IEntitySource prefabEntity, TypeName componentClass) | 
| Get component source inherited from given class from entity source.   | |
| static int | FindComponentSources (Resource prefabResource, notnull array< string > componentClassNames, notnull out array< ref array< IEntityComponentSource > > componentSources) | 
| Get component sources of given classes from prefab resource.   | |
| static int | FindComponentSources (IEntitySource prefabEntity, notnull array< string > componentClassNames, notnull out array< ref array< IEntityComponentSource > > componentSources) | 
| Get component sources of given classes from entity source.   | |
| static int | FindComponentSourcesOfClass (IEntitySource prefabEntity, TypeName componentClass, bool GetChildComponentsOfComponents, notnull out array< IEntityComponentSource > componentSources) | 
| Get all component sources of given class from entity source.   | |
| static int | GetComponentSourceChildren (notnull IEntityComponentSource componentSource, notnull out array< IEntityComponentSource > componentSources) | 
| Get all component sources children from given component source.   | |
| static BaseContainer | GetPrefabContainer (BaseContainer container) | 
| Get first container in hierarchy that comes from a prefab.   | |
| static ResourceName | GetPrefabResourceName (BaseContainer container) | 
| Get resource name of the first container in hierarchy that comes from a prefab.   | |
| static array< string > | GetPrefabSetValueNames (notnull BaseContainer baseContainer) | 
| Get a Prefab's modifications from its parent.   | |
| static BaseContainer | GetTopMostAncestor (notnull BaseContainer baseContainer) | 
| Get the topmost BaseContainer parent If it is the topmost, returns the provided baseContainer.   | |
| static bool | IsKindOf (notnull BaseContainer container, ResourceName resourceName) | 
| Says if the provided container is of type or inherits from a resourcename.   | |
| static bool | IsKindOf (ResourceName checkedResourceName, ResourceName supposedAncestor) | 
| Says if the provided resourcename is of type or inherits from another resourcename.   | |
| static vector | GetWorldCoords (IEntitySource entitySource, vector coords) | 
| Get world coordinates of position local to given entity source.   | |
| static vector | GetLocalCoords (IEntitySource entitySource, vector coords) | 
| Get coordinates local to given entity source.   | |
| static string | GetArrayValue (notnull array< int > values) | 
| Convert integer array to string in format acceptable by WorldEditorAPI.SetVariableValue.   | |
      
  | 
  static | 
Get Managed Instance from prefab.
| [in] | prefab | Prefab ResourceName | 
| [in] | printError | If true will print an error if it fails | 
      
  | 
  static | 
Get component index in entity source.
| [in] | entitySource | Entity source | 
| [in] | componentClassName | Class name of desired component | 
      
  | 
  static | 
Get component index in entity source.
| [in] | entitySource | Entity source | 
| [in] | componentClass | Class of desired component | 
      
  | 
  static | 
Get component source of given class from entity source.
| [in] | prefabEntity | Entity source | 
| [in] | componentClassName | Class name of desired component | 
      
  | 
  static | 
Get component source inherited from given class from entity source.
| [in] | prefabEntity | Entity source | 
| [in] | componentClass | Class of desired component | 
      
  | 
  static | 
Get component source of given class from prefab resource.
| [in] | prefabResource | Loaded entity prefab, use Resource.Load(prefab) to retrieve it from ResourceName | 
| [in] | componentClassName | Class name of desired component | 
      
  | 
  static | 
Get component source inherited from given class from prefab resource.
| [in] | prefabResource | Loaded entity prefab, use Resource.Load(prefab) to retrieve it from ResourceName | 
| [in] | componentClassName | Class of desired component | 
      
  | 
  static | 
Get component sources of given classes from entity source.
| [in] | prefabEntity | Entity source | 
| [in] | componentClassNames | Class names of desired components | 
| [out] | Array | to be filled with component sources (in the same order as componentClassNames) | 
      
  | 
  static | 
Get component sources of given classes from prefab resource.
| [in] | prefabResource | Loaded entity prefab, use Resource.Load(prefab) to retrieve it from ResourceName | 
| [in] | componentClassNames | Class names of desired components | 
| [out] | Array | to be filled with component sources (in the same order as componentClassNames) | 
      
  | 
  static | 
Get all component sources of given class from entity source.
| [in] | prefabEntity | Entity source | 
| [in] | componentClass | Class names of desired components | 
| [in] | GetChildComponentsOfComponents | if true it will itterate over all children of the component (not entity) and get the components from it. Will search two layers deep | 
| [out] | componentSources | Array filled with the found IEntityComponentSource of given class | 
      
  | 
  static | 
Get entity source from prefab resource.
| [in] | prefabResource | Loaded entity prefab, use Resource.Load(prefab) to retrieve it from ResourceName | 
      
  | 
  static | 
Convert integer array to string in format acceptable by WorldEditorAPI.SetVariableValue.
| [in] | values | Input array | 
      
  | 
  static | 
Get all component sources children from given component source.
| [in] | componentSource | Component source | 
| [out] | componentSources | Array filled with the found IEntityComponentSource | 
      
  | 
  static | 
Get class name of prefab resource.
Use to check if prefab class is matching requirements before you spawn it.
| [in] | prefab | Prefab resource | 
      
  | 
  static | 
Get class name of the prefab.
Use to check if prefab class is matching requirements before you spawn it.
| [in] | prefab | Prefab path | 
      
  | 
  static | 
Get coordinates local to given entity source.
| [in] | entitySource | Entity source | 
| [in] | coords | World coordinates | 
      
  | 
  static | 
Get first container in hierarchy that comes from a prefab.
| [in] | container | Evaluated container | 
      
  | 
  static | 
Get resource name of the first container in hierarchy that comes from a prefab.
| [in] | container | Evaluated container | 
      
  | 
  static | 
Get a Prefab's modifications from its parent.
| [in] | sourcePrefab | 
      
  | 
  static | 
Get the topmost BaseContainer parent If it is the topmost, returns the provided baseContainer.
| [in] | baseContainer | 
      
  | 
  static | 
Get world coordinates of position local to given entity source.
| [in] | entitySource | Entity source | 
| [in] | coords | Local coordinates | 
      
  | 
  static | 
Says if the provided container is of type or inherits from a resourcename.
| [in] | container | the container to check | 
| [in] | resourceName | the supposed ancestor | 
      
  | 
  static | 
Says if the provided resourcename is of type or inherits from another resourcename.
| [in] | checkedResourceName | the Prefab to check | 
| [in] | supposedAncestor | the supposed ancestor |