add( odf, player, position )

static function

Adds a new Entity to the world. The new entity can be of any type as defined by an ODF file that was loaded when the game started.

Arguments

Name Type Description
odf String The ODF name for the new entity
player Player The player the new entity will belong to
position Vector The world position of the new entity

Returns

Type Description
Entity (or derived type) The newly created Entity, or nil if creation failed