Difference between revisions of "Talk:GetDialogueTarget - Actor"
Jump to navigation
Jump to search
m
Talk:GetDialogueTarget - Actor (edit)
Revision as of 01:09, 18 February 2013
, 01:09, 18 February 2013no edit summary
imported>Zartar |
imported>Zartar m |
||
Line 54: | Line 54: | ||
== Notes == | == Notes == | ||
This usually finds the actor the player is in dialogue with but more testing is required. It works very well for me, so far... I tend to modify this by passing in the player's reference and lowering iLoopCount but the version I posted is safe and convenient. EDIT: jbezorg's alternate method is flawless in interior cells, I would recommend it but it is worth noting that the method may fail in exterior cells if the player is speaking to an NPC that is in another cell (this could happen if the player is standing very close to a cell border). For exterior cells it may be safer to use my method but increase both the loop count and the radius of the find random actor function. | This usually finds the actor the player is in dialogue with but more testing is required. It works very well for me, so far... I tend to modify this by passing in the player's reference and lowering iLoopCount but the version I posted is safe and convenient. EDIT: jbezorg's alternate method is flawless in interior cells, I would recommend it but it is worth noting that the method may fail in exterior cells if the player is speaking to an NPC that is in another cell (this could happen if the player is standing very close to a cell border). For exterior cells it may be safer to use my method but increase both the loop count and the radius of the find random actor function. ~[[Zartar]] | ||
== Alternative Method == | == Alternative Method == |