Skip to content

StaticLoad

Note

This function only exists in RSDKv5U.

Description

Called once per object class, once when the static variables are allocated. Used for initializing any static variables. It's basically an RSDK implementation of a constructor in C++.

Parameters

sVars

A pointer to the static variables that will be initialized during this event.

Syntax

void StaticLoad(Object[ObjectName] *sVars);
static void StaticLoad(Static *sVars);

Examples

void MyObject_StaticLoad(ObjectMyObject *sVars) { }
void MyObject::StaticLoad(Static *sVars) { }