-- level objectives g_avtivated1 = 0 function obj_1_init(e) end function obj_1_main(e) PromptLocal(e,"[1]") PlayerDist = GetPlayerDistance(e) if PlayerDist < 100 and g_PlayerHealth > 0 then PromptDuration("** OBJECTIVE 1 COMPLETED **",3000) PlaySound(e,0) ActivateIfUsed(e) g_activated1 = 1 SetEntityHealth(e,0) Destroy(e) end end