MovableManager:GetClosestTeamActor

From Data Realms Wiki

Jump to: navigation, search
Function
SyntaxGetClosestTeamActor( * Which team to try to get an Actor for. 0 means first team, 1 means 2nd.
  • The player to get the Actor for. This affects which brain can be marked.
  • 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 of a specifc team and closest to a specific scene point.
ReturnsAn Actor pointer to the requested team's 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