Osiris/API/GetClosestAlivePlayer

From Divinity Engine Wiki
Revision as of 15:29, 19 December 2017 by Tinkerer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • query GetClosestAlivePlayer([in](GUIDSTRING)_Target, [out](CHARACTERGUID)_Player)
Description

Gets the closest player to _Target that is alive and stores it in _Player.

Return Values
  • Success/Failure: Fails if no living player is found.
  • _Player: The found player character.
Notes
  • Be careful if you check for extra conditions on the returned player: if any of those conditions fail, no other players will be considered.
  • If you want to start a dialog, use ProcGetClosestAvailableCharacterTo
See Also