Initial commit
This commit is contained in:
21
DATA/SCRIPTS/GAMEOBJECT/OBJECTSCRIPT_DESPAWNIONNEBULA.LUA
Normal file
21
DATA/SCRIPTS/GAMEOBJECT/OBJECTSCRIPT_DESPAWNIONNEBULA.LUA
Normal file
@@ -0,0 +1,21 @@
|
||||
-- Star Wars Empire at War: Secrets of a Fallen Empire
|
||||
-- Lua Script: //Scripts/GameObject/ObjectScript_DespawnIonNebula.lua
|
||||
-- Author: Galyana
|
||||
-- Updated: 6 February, 2026
|
||||
|
||||
-- Despawns the ion nebula spawned from the hutts emitter satellite via Objectscript_SpawnIonNebula.lua
|
||||
|
||||
require("PGStateMachine")
|
||||
require("PGSpawnUnits")
|
||||
|
||||
function Definitions()
|
||||
Define_State("State_Init", State_Init)
|
||||
end
|
||||
|
||||
function State_Init(message)
|
||||
if message == OnEnter then
|
||||
-- Find_Nearest_Space_Field(Object_Type, "Asteroid"/"Nebula"/"Ion_Storm")
|
||||
ion_storm = Find_Nearest_Space_Field(Object, "Nebula")
|
||||
ion_storm.Despawn()
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user