User Tools

Site Tools


scripting:reference:cutscenes:player

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()
basepos.Add(1,0,0)
// Apply the positional blend to the player
localPlayer.BlendTo( 20, basepos, 0, 0 )

} </codedoc>

scripting/reference/cutscenes/player.txt · Last modified: 2020/01/28 17:50 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki