Talk:FindClosestActor - Game

From the CreationKit Wiki
Revision as of 16:56, 19 February 2012 by imported>Vapid (→‎quick note: new section)
Jump to navigation Jump to search

Closest to player?

This is a global function, so it's not called on anything in particular. Is it finding the closest actor to the player, perhaps? Can anyone shed any light on this?

-- Cipscis 07:52, 11 February 2012 (EST)

Ignore that - upon rereading the page it's painfully obvious how this function works. I somehow missed that it takes coordinates as parameters.
-- Cipscis 07:53, 11 February 2012 (EST)

quick note

Both 'FindClosestActor' and 'FindClosestActorFromRef' can return 'Player', which means they can't be used to find the nearest actor to the player.