Switch Methods

From Serious Sam Wiki
Jump to: navigation, search

This page contains a table with all methods of CSwitchEntity. Use the following syntax to include it on another page:

{{:Switch Methods}}
CSwitchEntity Methods
Name Parameters Return Data Type Description
Name Data Type
Activate - void Activates the Switch.
AssureActivated - void To do: Add description.
Info 16x16.png Note: Appears to work the same as Activate(), except that it does not play the sound of the switch being flipped.
Deactivate - void Deactivates the Switch.
IsActivated - BOOL Returns TRUE if the Switch is on.
SetUsable bUsable BOOL void When bUsable is set to FALSE, the player is not able to flip the switch. When bUsable is set to TRUE, the player is able to flip the switch.
Info 16x16.png Note: Setting bUsable to FALSE still allows scripts to change the state of the Switch