MovableManager:GetClosestActor

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
Beautifybot (Talk | contribs)
(updating function page)

Latest revision as of 00:47, 28 June 2012

Function
SyntaxGetClosestActor( * Which team to try to get an Actor for. 0 means first team, 1 means 2nd.
  • The Scene point to search for the closest to.
  • The maximum radius around that scene point to search.
  • A float to be filled out with the distance of the returned closest to the search point. Will be unaltered if no object was found within radius.
  • An Actor to exclude from the search. OINT. )
Description:
Get a pointer to an Actor in the internal Actor list that is closest to a specific scene point.
ReturnsAn Actor pointer to the requested Actor closest to the Scene point, but not outside the max radius. If no Actor other than the excluded one was found within the radius of the point, 0 is returned.




Example
DescriptionPlaceholder!
Code
  1. for k,v in pairs(PagesWithoutExamples) do
  2.     v.MakeExample(NoErrors);
  3. end
OutputPlaceholder!
Personal tools