5,389
edits
m (→A_t48: correction) |
m (→A_t48: typo and complement) |
||
Line 35: | Line 35: | ||
:Type the word "ai2_deaf" at the console and press Enter. The output will be "bool: 0" | :Type the word "ai2_deaf" at the console and press Enter. The output will be "bool: 0" | ||
:This means that '''ai2_deaf''' is the name of a "boolean" variable (true/false), | :This means that '''ai2_deaf''' is the name of a "boolean" variable (true/false), | ||
:and that the ''value'' of that variable named is currently set to "false" (0). | :and that the ''value'' of that variable named '''ai2_deaf''' is currently set to "false" (0). | ||
:It is actually a switch. Normally the AI ''aren't'' deaf, but if '''ai2_deaf''' is "true", then they ''are''. | |||
:We will now change that value to "true" (1), by entering either '''ai2_deaf=1''' or '''ai2_deaf=true''' | :We will now change that value to "true" (1), by entering either '''ai2_deaf=1''' or '''ai2_deaf=true''' | ||
:After we've entered that, we'll get the output "int32: 1" or "bool: 1", meaning that the value was set to "true" (1). | :After we've entered that, we'll get the output "int32: 1" or "bool: 1", meaning that the value was set to "true" (1). |