Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_BaseSpawnable Interface Reference
Inheritance diagram for SCR_BaseSpawnable:
SCR_DebrisSpawnable SCR_ParticleSpawnable SCR_PrefabSpawnable

Public Member Functions

void SetVariables (WorldEditorAPI api, IEntitySource source, array< ref ContainerIdPathEntry > path, int index)
 
bool CompareAttributes (SCR_BaseSpawnable other)
 Returns true when attributes are the same Returns false otherwise.
 
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.
 

Protected Attributes

vector m_vOffsetPosition
 
vector m_vOffsetRotation
 

Member Function Documentation

◆ AlreadyExists()

bool SCR_BaseSpawnable.AlreadyExists ( WorldEditorAPI api,
IEntitySource source,
int index )

◆ CompareAttributes()

bool SCR_BaseSpawnable.CompareAttributes ( SCR_BaseSpawnable other)

Returns true when attributes are the same Returns false otherwise.

Implemented in SCR_DebrisSpawnable, SCR_ParticleSpawnable, and SCR_PrefabSpawnable.

◆ CopyToSource()

void SCR_BaseSpawnable.CopyToSource ( WorldEditorAPI api,
IEntitySource source,
array< ref ContainerIdPathEntry > path,
int index,
string currentObjectName )

◆ CreateObject()

bool SCR_BaseSpawnable.CreateObject ( WorldEditorAPI api,
IEntitySource source,
array< ref ContainerIdPathEntry > path,
int index )

◆ GetSpawnTransform()

void SCR_BaseSpawnable.GetSpawnTransform ( IEntity owner,
out vector outMat[4],
bool localCoords = false )

Calculates the spawn tranformation matrix for the object.

◆ SetVariables()

void SCR_BaseSpawnable.SetVariables ( WorldEditorAPI api,
IEntitySource source,
array< ref ContainerIdPathEntry > path,
int index )

◆ Spawn()

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

Spawns the object.

Implemented in SCR_DebrisSpawnable, SCR_ParticleSpawnable, and SCR_PrefabSpawnable.

Member Data Documentation

◆ m_vOffsetPosition

vector SCR_BaseSpawnable.m_vOffsetPosition
protected

◆ m_vOffsetRotation

vector SCR_BaseSpawnable.m_vOffsetRotation
protected

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