public static void _AddObjectToSpawnPoint(uint oWP, uint oObject, CLRScriptBase s)
{
int i;
// Add this creature to the list of creatures spawned from this waypoint and
// area.
i = s.GetLocalInt(oWP, _SPAWNED_OBJECT_ARRAY_LENGTH);
SetLocalArrayObject(oWP, _SPAWNED_OBJECT_ARRAY, i, oObject, s);
s.SetLocalInt(oWP, _SPAWNED_OBJECT_ARRAY_LENGTH, i + 1);
// Add a pointer back to the waypoint, for death reporting.
s.SetLocalObject(oObject, _SPAWN_PARENT_WP, oWP);
}