Rotate (script event)

From modwiki

Jump to: navigation, search

Game class

This event operates on an instance of the game class type {{{gameclass}}}

Description

This function causes an entity to continuously rotate N degrees in the space of a given time.

Usage

void rotate( vector rotateAxis )

Parameters

[rotateAxis] - The axis around which the entity will rotate.

Examples

$my_entity.rotate( '0 0 90' );

Notes

This script event does not return any values. This event differs from rotateOnce in that rotate will force an entity to continuing rotating for the duration of the game. The above example will cause the entity to complete a 90 degree rotation on the z-axis during that entity's pre-established time. If no time is set, the default is 1 second.


Personal tools
Main
id Tech 5