Skip to content

ResetEntity

Description

Resets entity with the classID and data specified.

Parameters

entity

The pointer 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(void *entity, uint16 classID, void *data);
entity->Reset(uint16 classID, void *data);

Example

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