Script:rotate: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Stub}}
{{ScriptCommandPage
 
|description=adjust the orientation
This page describes the <code>rotate</code> script command.
|context=any
 
|parameters=
Usage:
dpitch number* Delta to add to the pitch in degrees
 
dyaw number* Delta to add to the yaw in degrees
rotate <pitch> <yaw> <roll>
droll number* Delta to add to the roll in degrees
 
|intro=This command has no effect on the player entity as the angle is overwritten each frame.
Parameters:
}}
{| class="wikitable sortable"
! Parameter
! Type
! Description
|-
| <code><pitch></code>
| {{real}}
| Value to add to the entity's pitch
|-
| <code><yaw></code>
| {{real}}
| Value to add to the entity's yaw
|-
| <code><roll></code>
| {{real}}
| Value to add to the entity's roll
|}
 
This command has no effect on the player entity as the angle is overwritten each frame.
 
[[Category:Script commands]]

Latest revision as of 11:02, 17 June 2022

The rotate script command is used to adjust the orientation for an entity. This command has no effect on the player entity as the angle is overwritten each frame.

Usage

rotate <dpitch*> <dyaw*> <droll*>

Context: Any Entity

Parameters:

ParameterTypeDescription
dpitch number or variable Delta to add to the pitch in degrees
dyaw number or variable Delta to add to the yaw in degrees
droll number or variable Delta to add to the roll in degrees