Skip to content

cop_bool_var

Kamran Wali edited this page Nov 29, 2024 · 4 revisions

Class Name: COP_BoolVar

Inherits: Resource

Description

cop_bool_var class stores and shares the reference for a bool type. The stored value can be changed during run time through scripts. It can NOT be set during editor mode.

Tutorial

Properties

Type Name Default Value
bool _value

Methods

Return Type Name
bool get_value()
void set_value( bool value )

Property Descriptions

bool _value

The stored value that will be shared through the method get_value(). This value can also be changed during runtime through the method set_value().

Note: This value can NOT have a pre-defined value when the application starts. It can only be set through script.


Method Descriptions

bool get_value ()

This method returns the stored _value.

Note: To get the stored value you MUST call this method. Do NOT call the _value directly as that may give unwanted results.


void set_value ( bool value )

This method sets the stored _value.

Note: To set the stored value you MUST call this method. Do NOT call _value. directly as that may give unwanted results.


Clone this wiki locally