All pastes #125352 Raw Edit

Flash

public text v1 · immutable
·published 2006-08-10 15:52 UTC
rendered paste body
#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