Osiris/API/GetRandomPositionInTrigger

From Divinity Engine Wiki
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
  • /