Osiris/API/GetRandomPositionInTrigger

From Divinity Engine Wiki
Revision as of 14:52, 8 August 2017 by Tinkerer (talk | contribs) (Osiris Core APIs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • query GetRandomPositionInTrigger([in](TRIGGERGUID)_Trigger, [out](REAL)_X, [out](REAL)_Y, [out](REAL)_Z)
Description

Returns a random position that is valid on the AI-grid inside _Trigger.

Return Values
  • Success/Failure: Default return value.
  • _Trigger: A box trigger inside which the random position should be gotten.
  • _X, _Y, _Z: the coordinates of the random position
Notes
  • This routine will first get a random position in the trigger, and if this random position is not valid on the AI-grid, the coordinates will be snapped to a nearby valid position on the AI-grid.
  • This call does not work for polytriggers
See Also
  • /