User Tools

Site Tools


scripting:reference:cutscenes:player

This is an old revision of the document!


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 model
localPlayer = Player()

basepos = Vector()
basepos.SetToLocalPlayerPosition()
offset = Vector(1,0,0)
basepos.Add(offset)

localPlayer.BlendTo( 20, basepos, 0, 0 )

} </codedoc>

scripting/reference/cutscenes/player.1333670393.txt.gz · Last modified: (external edit)