Initial commit
This commit is contained in:
14
DATA/SCRIPTS/GAMEOBJECT/OBJECTSCRIPT_BUZZDROIDS.LUA
Normal file
14
DATA/SCRIPTS/GAMEOBJECT/OBJECTSCRIPT_BUZZDROIDS.LUA
Normal file
@@ -0,0 +1,14 @@
|
||||
require("PGStateMachine")
|
||||
|
||||
function Definitions()
|
||||
ServiceRate = 1
|
||||
Define_State("State_Spawned_In_Nebula", State_Spawned_In_Nebula);
|
||||
end
|
||||
|
||||
function State_Spawned_In_Nebula(message)
|
||||
if message == OnEnter then
|
||||
if Object.Is_In_Nebula() or Object.Is_In_Ion_Storm() then
|
||||
Object.Take_Damage(20) --Tune to reduce object lifetime
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user