GetWhiteScanLines

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events
VU This function works in Vice Unleashed only.

This function will return a boolean value of either true or false depending on what is the current status of white scan lines.

Syntax

  1. bool GetWhiteScanLines( [ Player plr ] )

Arguments

  • plr - If this optional argument is used, the status of the given player is returned. Otherwise returns the global scan line status

Example

This example returns the global status of white scan lines when someone types '/whitescan'.

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "whitescan" ) MessagePlayer( "White scan line status is currently set to " + GetWhiteScanLines(), player );
  5. return 1;
  6. }
  7.  

Notes

This is useful for checking that the white scan line aren't already active before setting it to true.

The function MessagePlayer and event onPlayerCommand were used in this example. More info about them in the corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox