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