Talk:FindClosestActor - Game

From the CreationKit Wiki
Revision as of 17:03, 19 February 2012 by imported>Cipscis (→‎Quick Note: Confirmed and documented)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Closest to player?[edit source]

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[edit source]

Both 'FindClosestActor' and 'FindClosestActorFromRef' can return 'Player', which means they can't be used to find the nearest actor to the player. —The preceding unsigned comment was added by 16:56, 19 February 2012 EST (talkcontribs) Vapid

Thanks Vapid, I've found that previously in my own tests but forgot to document it here. I've added a note to both pages now, as well as fixing the example on FindClosestActorFromRef
-- Cipscis 17:03, 19 February 2012 (EST)