I have been trying get this to work. Does anyone know why it doesn't?:
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
-- Default script - does nothing.
function hole_init(e)
sodhealth = g_Entity[e]['health']
sody = GetEntityPositionY(e)
end
function hole_main(e)
Prompt(GetEntityPositionY(e))
if g_Entity[e]['health'] < sodhealth then
SendMessageF("setpositiony",e,sody)
sody = sody - 50
Prompt(sody)
sodhealth = g_Entity[e]['health']
end
end
Julian - increasingly disillusioned and jaded