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