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