Switch Goal: Difference between revisions

From MyGamingTalk
m (1 revision imported)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:02, 13 February 2023

Goal Instructions 0.8 Switch Goal

Fastrack

  • /bot goal_create switch <name>
  • /bot goal_setproperty aim while looking at the switch
    • optionally use /bot goal_setproperty facing instead (not recommended since it's less reliable)
  • /bot goal_finish

Detailed Instructions

Description

Switch is a goal for the bots to use levers or a button as a goal

Setup

See the Fastrack example at the top of the page for an example setup.

Properties

Properties can be set with the goal_setproperty command assuming that the goal has been selected.
aim
AimPosition is the position the bots will aim at to use the lever, button, or switch


syntax: /bot goal_setproperty aim
example: /bot goal_setproperty aim (while facing the switch)
note: if set, this will override any facing that was set
facing
Facing is the direction the bots will aim to use the lever, button, or switch


syntax: /bot goal_setproperty facing
example: /bot goal_setproperty facing
note: use Aim in most cases instead of this
group
A group is a method of organizing sets of goals. One advantage to this is that all goals in a group can be enabled or disabled in one line of script rather than seperate goal types requiring additional lines to enable or disable them. Assigning roles to a group is also possible as an alternative to assigning each individual goal a role.


syntax: /bot goal_setproperty group <string groupName>
example: /bot goal_setproperty group myGroup
role
See the section on bot roles.


syntax: /bot goal_setproperty role <role mask>
example: /bot goal_setproperty role 1
tagname
Sets the name of the goal. This can optionally be set when passed as the optional parameter in the goal_create command. Useful for renaming goals.


syntax: /bot goal_setproperty tagname <string name>
example: /bot goal_setproperty tagname myGoalName

Video Tutorial Version


Adding a Switch Goal