Skip to content

FindObject

Description

Finds a loaded object by name and retrieves its ID.

Parameters

name

The name of the object to find.

Return Value

Returns the classID of the found object as a uint16. The return value will be 0 if the object wasn't found.

Syntax

RSDK.FindObject(const char *name);
GameObject::Find(const char *name);

Example

uint16 foundObject = RSDK.FindObject("MyObject");
uint16 foundObject = GameObject::Find("MyObject");