System/SpawnEntity

From Blue Mars Developer Guidebook

Jump to: navigation, search
There are security restrictions on this article


This is a System function

Function

SpawnEntity(params)
params - table table of spawn parameters

Parameters

class 
string - name of the entity class. This is the only required parameter default - {{{p1default}}}
position 
vector - initial position of the new entity default - {{{p2default}}}
orientation 
vector - initial orientation of the new entity, (the Direction Vector, as opposed to Angles) default - {{{p3default}}}
scale 
float - initial scale of the new entity, a number default - {{{p4default}}}
properties 
table - modifications to the entity script properties default - {{{p5default}}}
propertiesInstance 
table - modifications to the entity PropertiesInstance table default - {{{p6default}}}
flags 
integer - entity spawn flags default - {{{p7default}}}
archetype 
string - name of the entity archetype default - {{{p8default}}}

Examples

Problems with this wiki page? Contact us either by: Support Email or Support Ticket System

Blue Mars Guidebook Privacy Policy
Blue Mars Guidebook Community Guidelines

Personal tools