ScriptEvent:getWorldAxis

From Mod Wiki

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.