//:: plchb_trap_spawn.nss #include "inc_debug" void main() { /* // Check if the placeable object is valid object oPlaceable = OBJECT_SELF; if (!GetIsObjectValid(oPlaceable)) return; // Spawn a waypoint at the placeable's location location loc = GetLocation(oPlaceable); object oWaypoint = CreateObject(OBJECT_TYPE_WAYPOINT, "rand_trap_loc", loc); // Check if the waypoint is valid if (!GetIsObjectValid(oWaypoint)) { // Output an error message if waypoint creation fails if (DEBUG) SendMessageToPC(GetFirstPC(), "Error: Unable to create waypoint at location!"); return; } // Destroy the placeable object DestroyObject(oPlaceable, 1.5); */ }