Flash
public text v1 · immutable#Global Hooks
$HUD:
[
-- MISSION INIT
if missioninit == nil then
shipdet = {}
missioninit = 1
end
for i=1,mn.getNumShips() do
ship = mn.getShipByIndex(i)
shiphp = ship.HitpointsLeft
shipname = ship.Name
if shiphp < 1 and shipdet[shipname] == nil then
ts.createParticle(ship.Position,ship.Velocity,ba.getFrametime(),2500,"bitmap",-1,false,gr.loadTexture("EXP_flash",true))
shipdet[shipname] = 1
end
end
-- For some reason this works just fine from $HUD:... dunno why
]
#End