Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scriptname Bulwark_Follower_Script_Catchup extends ObjectReference
- int distanceCheck = 2500
- bool breakLoop
- EVENT onLoad()
- UpdateLoop() ; This script will update every (2) seconds
- endEVENT
- EVENT onUnload()
- breakLoop = True
- endEVENT
- Function UpdateLoop()
- While (Self.IsPlayerTeammate() && !breakLoop)
- if (getDistance(game.getplayer()) <= distanceCheck)
- Self.Moveto(Game.GetPlayer())
- EndIf
- Utility.Wait(2)
- EndWhile
- breakLoop = False
- EndFunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement