Advertisement
expired6978

Untitled

Dec 29th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Actor Function XFL_GetClosestFollower(ObjectReference akSource)
  2. int i = 0
  3. Actor foundActor = XFL_FollowerAliases[0].GetReference()
  4. int limit = XFL_GetMaximum()
  5. While i <= limit ; Find the highest value
  6. If XFL_FollowerAliases[i] && XFL_FollowerAliases[i].GetReference() && akSource.GetDistance(foundActor) < akSource.GetDistance(XFL_FollowerAliases[i].GetReference())
  7. foundActor = XFL_FollowerAliases[i].GetReference() as Actor
  8. EndIf
  9. i += 1
  10. EndWhile
  11. return foundActor
  12. EndFunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement