Difference between revisions of "Talk:FindClosestActor - Game"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Cipscis
 
imported>Cipscis
(→‎Quick Note: Confirmed and documented)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:


-- [[User:Cipscis|Cipscis]] 07:52, 11 February 2012 (EST)
-- [[User:Cipscis|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.
: -- [[User:Cipscis|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. {{unsigned|Vapid|16:56, 19 February 2012 EST}}
: 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
: -- [[User:Cipscis|Cipscis]] 17:03, 19 February 2012 (EST)

Latest revision as of 17:03, 19 February 2012

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)