scripting:reference:cutscenes:player
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| scripting:reference:cutscenes:player [2012/04/05 23:45] – created mit | scripting:reference:cutscenes:player [2025/05/28 16:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| ===== Example ===== | ===== Example ===== | ||
| + | This simple cutscene moves the local player from his current position to one 'a little over there' over the course of 20 seconds. | ||
| + | < | ||
| + | section(1) | ||
| + | { | ||
| + | // Get the local player | ||
| + | localPlayer = Player() | ||
| + | // Calculate the target position | ||
| + | basepos = Vector() | ||
| + | basepos.SetToLocalPlayerPosition() | ||
| + | basepos.Add(1, | ||
| + | // Apply the positional blend to the player | ||
| + | localPlayer.BlendTo( 20, basepos, 0, 0 ) | ||
| + | } | ||
| + | </ | ||
scripting/reference/cutscenes/player.1333669506.txt.gz · Last modified: (external edit)
