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