Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SCR_PrefabSpawnable Interface Reference
Inheritance diagram for SCR_PrefabSpawnable:
[legend]

Public Member Functions

override bool CompareAttributes (SCR_BaseSpawnable other)
 
override void SetVariables (WorldEditorAPI api, IEntitySource source, array< ref ContainerIdPathEntry > path, int index)
 
override bool CreateObject (WorldEditorAPI api, IEntitySource source, array< ref ContainerIdPathEntry > path, int index)
 
override IEntity Spawn (IEntity owner, Physics parentPhysics, SCR_HitInfo hitInfo, bool snapToTerrain=false)
 Spawns the object.
 
- Public Member Functions inherited from SCR_BaseSpawnable
void SetVariables (WorldEditorAPI api, IEntitySource source, array< ref ContainerIdPathEntry > path, int index)
 
bool CompareAttributes (SCR_BaseSpawnable other)
 
bool AlreadyExists (WorldEditorAPI api, IEntitySource source, int index)
 
bool CreateObject (WorldEditorAPI api, IEntitySource source, array< ref ContainerIdPathEntry > path, int index)
 
void CopyToSource (WorldEditorAPI api, IEntitySource source, array< ref ContainerIdPathEntry > path, int index, string currentObjectName)
 
void GetSpawnTransform (IEntity owner, out vector outMat[4], bool localCoords=false)
 Calculates the spawn tranformation matrix for the object.
 
IEntity Spawn (IEntity owner, Physics parentPhysics, SCR_HitInfo hitInfo, bool snapToTerrain=false)
 Spawns the object.
 

Public Attributes

ref array< ResourceName > m_Prefabs
 
float m_fDamageToImpulse
 
float m_fRandomVelocityLinear
 
float m_fRandomVelocityAngular
 
bool m_bSpawnAsChildren
 

Additional Inherited Members

- Protected Attributes inherited from SCR_BaseSpawnable
vector m_vOffsetPosition
 
vector m_vOffsetRotation
 

Member Function Documentation

◆ CompareAttributes()

override bool SCR_PrefabSpawnable.CompareAttributes ( SCR_BaseSpawnable  other)
Parameters
[in]other
Returns
true when attributes are the same, false otherwise

Implements SCR_BaseSpawnable.

◆ CreateObject()

override bool SCR_PrefabSpawnable.CreateObject ( WorldEditorAPI  api,
IEntitySource  source,
array< ref ContainerIdPathEntry >  path,
int  index 
)
Parameters
[in]api
[in]source
[in]path
[in]index
Returns

Implements SCR_BaseSpawnable.

◆ SetVariables()

override void SCR_PrefabSpawnable.SetVariables ( WorldEditorAPI  api,
IEntitySource  source,
array< ref ContainerIdPathEntry >  path,
int  index 
)
Parameters
[in]api
[in]source
[in]path
[in]index

Implements SCR_BaseSpawnable.

◆ Spawn()

override IEntity SCR_PrefabSpawnable.Spawn ( IEntity  owner,
Physics  parentPhysics,
SCR_HitInfo  hitInfo,
bool  snapToTerrain = false 
)

Spawns the object.

Parameters
[in]owner
[in]parentPhysics
[in]hitInfo
[in]snapToTerrain
Returns

Implements SCR_BaseSpawnable.

Member Data Documentation

◆ m_bSpawnAsChildren

bool SCR_PrefabSpawnable.m_bSpawnAsChildren

◆ m_fDamageToImpulse

float SCR_PrefabSpawnable.m_fDamageToImpulse

◆ m_fRandomVelocityAngular

float SCR_PrefabSpawnable.m_fRandomVelocityAngular

◆ m_fRandomVelocityLinear

float SCR_PrefabSpawnable.m_fRandomVelocityLinear

◆ m_Prefabs

ref array<ResourceName> SCR_PrefabSpawnable.m_Prefabs

The documentation for this interface was generated from the following file: