CreateObjectVoid(int, string, location, int)

Similiar to CreateObject() but does not return the object created.

void CreateObjectVoid(
    int nObjectType,
    string sTemplate,
    location lLoc,
    int bUseAppearAnimation = FALSE
);

Parameters

nObjectType

OBJECT_TYPE_*

sTemplate

The blueprint ResRef string of the object to be created.

lLoc

The location where the object should be created.

bUseAppearAnimation

Causes the created object to use an animation when it appears. (Default: FALSE)


Description

Creates an object (determined by nObjectType) with the blueprint ResRef (sTemplate) at lLoc. This is similiar to the standard CreateObject() function, but unlike that function CreateObjectVoid() does not return the object created by itself.



Remarks

Only the following constants are valid for the nObjectType parameter:
- OBJECT_TYPE_ITEM
- OBJECT_TYPE_CREATURE
- OBJECT_TYPE_PLACEABLE
- OBJECT_TYPE_STORE
- OBJECT_TYPE_WAYPOINT


Requirements

#include "nw_i0_2q4luskan"

Version

1.61

See Also

functions: CreateObject
categories: Item Creation Functions
constants: OBJECT_TYPE_* Constants


 author: Charles Feduke, editor: Lilac Soul, additional contributor(s): Lilac Soul