Difference between revisions of "ScriptEvent:getWorldAxis"

From Mod Wiki
 
(No difference)

Latest revision as of 17:02, 5 November 2007

Parameters

integer index -- Which axis to return, 0 = Forward, 1 = Right, 2 = Up.

Result

vector

Supported By

sdClientScriptEntity
idEntity

Comments

  • Values outside of the range 0 -> 2 are likely to return garbage data, or crash.

Functionality

Returns a vector representing the specified physics axis of the object in world space.