Scripting/Squirrel/Functions/SetWastedSettings: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary
No edit summary
 
Line 33: Line 33:


{{Scripting/Squirrel/Functions/Spawn_and_Wasted_Screen_Functions}}
{{Scripting/Squirrel/Functions/Spawn_and_Wasted_Screen_Functions}}
[[Category:Scripting/Squirrel/Functions/Spawn_and_Wasted_Screen_Functions]]

Latest revision as of 21:58, 30 January 2017

This function will set the appearence of the wasted screen when a player dies.

Syntax

SetWastedSettings( deathTime, fadeTime, fadeInSpeed, fadeOutSpeed, colour, corpseFadeDelay, corpseFadeTime )

Arguments

  • int deathTime - The death time
  • int fadeTime - The fade time
  • float fadeInSpeed - The fade in speed
  • float fadeOutSpeed - The fade out speed
  • cRGB colour - The colour
  • int corpseFadeDelay
  • int corpseFadeTime


Example

The following example disables the wasted screen

function onScriptLoad()
{
 SetWastedSettings( 0, 0, 0, 0, RGB(0,0,0), 0, 0)
}

Notes

Call onScriptLoad were used in this example. More info about them in the corresponding pages.

Related Functions