Ride Goal

From MyGamingTalk
Jump to navigation Jump to search
Goal Instructions 0.8 Ride Goal

Fastrack

  • /bot goal_create ride <name>
  • /bot goal_setproperty vehicle <vehicle goal name>
    • example: /bot goal_setproperty vehicle MOVER_train
  • stand at a position the bot should board the mover
  • /bot goal_setproperty board 0
    • optionally define additional board positions
    • a blue line with an index label will be rendered for all board positions
  • stand at a position the bot should ride the mover
  • /bot goal_setproperty seat 0
    • optionally define additional seat positions
    • a blue line with an index label will be rendered for all seat positions
  • optionally set a stance the bot should assume while riding
    • stance values are stand, crouch, prone. default is stand

Detailed Instructions

Description

Ride is a goal for the bots to board and ride tugs and trams.

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.


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
vehicle
This property attaches the goal to the specified vehicle.


syntax: /bot goal_setproperty vehicle <vehicle goal name>
example: /bot goal_setproperty vehicle MOVER_truck
stance
Set the stance the bot should assume while performing this action.


syntax: /bot goal_setproperty stance <string stance>
example: /bot goal_setproperty stance crouch
values: stand crouch prone
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
board
Sets a position where a bot should board the vehicle


syntax: /bot goal_setproperty board <int index>
example: /bot goal_setproperty board 0
seat
Sets a position where a bot should ride in the vehicle


syntax: /bot goal_setproperty seat <int index>
example: /bot goal_setproperty seat 0


Picture of Ride Setup

Ride seat and board.jpg

Video Tutorial Version


Adding a Ride Goal