game_rules

get_prop

Returns specified game_rule prop

any get_prop(<string> prop_name, [optional] <int> array_index)
FieldsDescription

prop_name string

networked prop name

array_index int

[optional] array index to use if the prop is an array

Example

print("Valve DS:",game_rules.get_prop("m_bIsValveDS"))

set_prop

Sets a specified game_rule prop

void set_prop(<string> prop_name, <any> value, [optional] <int> array_index)
FieldsDescription

prop_name string

networked prop name

value any

value to set the prop to

array_index any

[optional] array index to use if the prop is an array

Example

game_rules.set_prop("m_bIsValveDS",1)

Last updated