Jump to content

BSL:Tutorial/Console: Difference between revisions

m
→‎A_t48: correction
m (oops)
m (→‎A_t48: correction)
Line 36: Line 36:
: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 is currently set to "false" (0).
:We will now change that value to "true", 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 "bool: 1", meaning that the value was successfully set to 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).
:We can check the success by entering '''ai2_deaf''' again, getting the output "bool: 1" instead of "bool: 0".
:We can check the success by entering '''ai2_deaf''' again, getting the output "bool: 1" instead of "bool: 0".
:Now, all of Oni's AI are completely deaf - including the A_t48 thug, so we can run around him if we want to.
:Now all of Oni's AI will be completely deaf. That includes the A_t48 thug, so we don't have to creep any more.
----
----
{|align=right
{|align=right