Scripting/Server/Functions/StopCinema
(v0.5-rc3+) StopCinema stops the video (the screen stays, empty). DeleteCinema removes the screen. SetCinemaVolume sets how loud it is (default 100); the sound also fades with the distance to the screen.
Syntax
StopCinema(id)DeleteCinema(id)SetCinemaVolume(id, 0..100)Arguments
- int id
- any 0..100
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "stopcinema" )
{
StopCinema( 0 );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- ToggleRealMoney
- SetTime
- SetTimeLock
- SetTimeScale
- SetWeatherLock
- GetTime
- SetWeather
- SetVirtualWorldTime
- SetVirtualWorldWeather
- SetGamespeed
- SetGravity
- ToggleImprovedCarCam
Section: World settings
Categories: Server functions | World settings