Buildoffset Goal

From MyGamingTalk
Revision as of 08:02, 13 February 2023 by Palota (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Goal Instructions 0.8 Build Offsets

Fastrack

  • only use this for mover build goals such as tanks, trucks or boats
  • /bot goal_edit
    • this will select the build goal, make sure the you have done draw_goals on build
  • /bot goal_setproperty vehicle <vehicle goal name>
    • this will select the mover to associate with the build goal
  • /bot goal_setproperty offset <int index>
    • this adds the area of the build mover goal for the bots to repair from
  • optionally set the stance. defaults to stand.
    • /bot goal_setproperty stance crouch (or prone)
  • /bot goal_finish

Detailed Instructions

Description

Build offset is an extension to the default build goal that defines where bots build movable constructibles from

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
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
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
note: only use this for build goals that are movable
offset
Sets a position where a bot should build the goal from


syntax: /bot goal_setproperty offset <int index>
example: /bot goal_setproperty offset 0
note: only use this for build goals that are movable. use usepoints for static positioned goals

Video Tutorial Version


Adding a Offset to Build Goal

Headline text