Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fox=FOX:New()
- fox:AddSafeZone(ZONE_UNIT:New( "unitname", UNIT:FindByName( "unitname" ), 9260)) --9260, in meters, the safe radius around that moving zone
- fox:SetDefaultLaunchMarks(false)
- fox:SetDisableF10Menu(true)
- --if u want to tell the pilot when they are "safe" use:
- function fox:OnAfterEnterSafeZone(From,Event,To,_player)
- local player=_player --Functional.Fox2#FOX.PlayerData
- MESSAGE:New("✠ You are in a safe area ✠"):ToClient(player.client)
- trigger.action.outSound('ISA.ogg')
- end
- function fox:OnAfterExitSafeZone(From,Event,To,_player)
- local player=_player --Functional.Fox2#FOX.PlayerData
- MESSAGE:New("✠ You are leaving a safe area ✠"):ToClient(player.client)
- trigger.action.outSound('LSA.ogg')
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement