Scripting/Squirrel/Functions/Object.RotateTo

From Vice City Multiplayer
Revision as of 18:33, 30 January 2017 by Thijn (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This function rotates an object to a specified Quaternion rotation.

Syntax

object.RotateTo( rotation, time )

Arguments

  • CObject object - A valid object instance.
  • Quaternion rotation - A rotation that is in Quaternion format.
  • int time - Time period within which the object has to rotate, in ms.

Example

CreateObject(1259, 0, Vector(-879.757, -576.008, 11.3371), 255).RotateTo( Quaternion(0, 0, 0.5, -0.866025), 0 );

Related Functions