Skip to content

ResetEntitySlot

Description

Resets the entity in slot with the classID and data specified.

Parameters

slot

The slot of the entity to reset.

classID

The class ID of the object to reset the entity as.

data

The data to send to the entity's Create() function.

Return Value

None.

Syntax

RSDK.ResetEntity(uint16 slot, uint16 classID, void *data);
GameObject::Reset(uint16 slot, uint16 classID, void *data);

Example

RSDK.ResetEntity(30, MyObject->classID, NULL);
GameObject::Reset(30, MyObject::sVars->classID, nullptr);