Category: Objects
/ Creation Since engine version: 4.6.5.0 CP
Description
Creates an object of the specified type at the specified position. The position will be the bottom center of the new object. iXOffset and iYOffset are relative to the calling object in local calls, otherwiese global.
Syntax
object CreateObject
(id id, int iXOffset, int iYOffset, int iOwner);
Parameters
id:
Type of object to be created
iXOffset:
X coordinate
iYOffset:
Y coordinate
iOwner:
Owner of the new object (valid player number or NO_OWNER for no-owner).