Osiris/API/GetRandomPositionInTrigger: Difference between revisions

From Divinity Engine Wiki
Jump to navigation Jump to search
(Osiris Core APIs)
 
mNo edit summary
 
Line 13: Line 13:
* /
* /
   
   
[[Category:Osiris Queries]]
[[Category:Osiris Queries|GetRandomPositionInTrigger]]

Latest revision as of 14:30, 19 December 2017

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
  • /