scripting:reference:cutscenes:player
This is an old revision of the document!
Table of Contents
Cutscenes Reference : Player class
Player objects are used to manipulate the players in the world.
Player inherits from MovableObject
Creation Parameters
Member Functions
None yet
Inherited from MovableObject : MoveTo,
BlendTo
Example
This simple cutscene moves the local player from his current position to one 'a little over there' over the course of 20 seconds. <codedoc> section(1) {
// Get the local player localPlayer = Player()
// Calculate the target position basepos = Vector() basepos.SetToLocalPlayerPosition() offset = Vector(1,0,0) basepos.Add(offset)
// Apply the positional blend to the player localPlayer.BlendTo( 20, basepos, 0, 0 )
} </codedoc>
scripting/reference/cutscenes/player.1333670455.txt.gz · Last modified: (external edit)
