The Universal World Resource
The Universal World Resource

Main Menu

World Owner stuff

Player Stuff

Hosted Worlds

Alliances

Lists > Cutscene
Printable | Search

Script Variables and Events

General Commands

NameAction
AmbientLight( #808088 )sets the ambient light of the cutscene to the value specified
DirectionalLight( (0.2,0.4,−0.7), (0.8,0.75,0.6) );makes a light shine from the first specified location towards the second specified location
Music( “<musicfilename>” )Plays the specified music file during a cutscene. The file must be in the servers Data\Music folder
Sound( time, “<soundfilename>” )Plays the specified sound file time seconds into a cutscene. The file must be in the servers Data\Sounds folder
Require( “filename” )requires that a file must be downloaded by the player before the cutscene will play
caption = Caption( 0.5, 0.65, “Text”, 1 );displays a box of text
caption.FadeIn( 1, 2 )
caption.FadeOut( 5, 6 )
these two commands would make a caption last for 6 seconds. between seconds 1 and 2 it will fade into view, then it will sit on screen from seconds 2 threw 5, then from seconds 5 to 6 it will fade out. of course the second #s can be changed
cam = Camera( variable, variable );sets the camera at the first specified variable looking towards the second specified variable
cam.BlendTo( time, variable, variable)tells the camera to take time seconds to move from the first specified variable to the second specified variable
scene = Scene();Defines the start of a scene

variables

NameAction
playerpos#variable that stores the players position on the world.
modelpos#variable used to store the location to display a model.
camposstores the camera starting position
camposEndstores the camera ending position

functions

NameAction
(variable).SetToLocalPlayerPosition()sets a variables coordinates to the players current position
(variable).Add( (#,#,#) )used to offset a variable from the players position
(variable) = Vector();variable that allows you to change a players position for use in the cutscene
(variable).AllowEscape();allows a player to hit the escape key to exit the cutscene
Page last modified on December 05, 2009, at 01:46 PM Edit Page | Page History

 

Powered by PmWiki