ACR_Quest.Spawn._AddObjectToSpawnPoint C# (CSharp) Метод

_AddObjectToSpawnPoint() публичный статический Метод

public static _AddObjectToSpawnPoint ( uint oWP, uint oObject, CLRScriptBase s ) : void
oWP uint
oObject uint
s CLRScriptFramework.CLRScriptBase
Результат void
        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);
        }