Scripting/Squirrel/Functions/SetWastedSettings: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This function will set the appearence when player dying. == Syntax == <pre>SetWastedSettings( deathTime, fadeTime, fadeInSpeed, fadeOutSpeed, colour, corpseFadeDelay, corpse...") |
ProsuWANTED (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
This function will set the appearence when player | This function will set the appearence of the wasted screen when a player dies. | ||
== Syntax == | == Syntax == | ||
Line 11: | Line 11: | ||
* ''float'' '''fadeInSpeed''' - The fade in speed | * ''float'' '''fadeInSpeed''' - The fade in speed | ||
* ''float'' '''fadeOutSpeed''' - The fade out speed | * ''float'' '''fadeOutSpeed''' - The fade out speed | ||
* '' | * [[Scripting/Squirrel/Functions/cRGB|''cRGB'']] '''colour''' - The colour | ||
* ''int'' '''corpseFadeDelay''' | * ''int'' '''corpseFadeDelay''' | ||
* ''int'' '''corpseFadeTime''' | * ''int'' '''corpseFadeTime''' | ||
Line 17: | Line 17: | ||
== Example == | == Example == | ||
The following example | |||
<source lang=squirrel> | The following example disables the wasted screen | ||
<source lang="squirrel"> | |||
function onScriptLoad() | function onScriptLoad() | ||
{ | { | ||
Line 26: | Line 27: | ||
=== Notes === | === Notes === | ||
Call [[onScriptLoad]] were used in this example. More info about them in the corresponding pages. | Call [[onScriptLoad]] were used in this example. More info about them in the corresponding pages. | ||
Revision as of 22:08, 1 August 2015
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.