Advertisement
Guest User

Untitled

a guest
Sep 25th, 2019
147
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fox=FOX:New()
  2. fox:AddSafeZone(ZONE_UNIT:New( "unitname", UNIT:FindByName( "unitname" ), 9260)) --9260, in meters, the safe radius around that moving zone
  3. fox:SetDefaultLaunchMarks(false)
  4. fox:SetDisableF10Menu(true)
  5.  
  6. --if u want to tell the pilot when they are "safe" use:
  7.  
  8.   function fox:OnAfterEnterSafeZone(From,Event,To,_player)
  9.     local player=_player --Functional.Fox2#FOX.PlayerData
  10.    MESSAGE:New("✠ You are in a safe area ✠"):ToClient(player.client)
  11.     trigger.action.outSound('ISA.ogg')
  12.   end
  13.  
  14.   function fox:OnAfterExitSafeZone(From,Event,To,_player)
  15.     local player=_player --Functional.Fox2#FOX.PlayerData
  16.     MESSAGE:New("✠ You are leaving a safe area ✠"):ToClient(player.client)
  17.     trigger.action.outSound('LSA.ogg')
  18.   end
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement