Build Goal

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

Fastrack

  • only use this in cases where the goal is not auto detected
  • /bot goal_create build <name>
  • /bot draw_oids
    • this will draw a bounding box around all OID's; which is the type of entity required
  • confirm the name of the OID in the center of the bounding box
  • face the OID and /bot goal_setproperty trace after making sure to be outside of the bounds of the desired OID
    • the center of the screen will say which entity the trace found
    • confirm that the entity number in the center print matches what is shown inside the bounding box from draw_oids
  • optionally set the stance. defaults to stand.
    • /bot goal_setproperty stance crouch (or prone, stand, random, jump)
  • /bot goal_finish

Detailed Instructions

Description

Build is a goal that allows bots to build constructibles

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 random jump
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
trace
Runs a trace based on where the player is aiming and stores the information for the goal.
syntax: /bot goal_setproperty trace
example: /bot goal_setproperty trace
note: the trace must be to an OID entity.
EntityName
Sets name of the objective entity. It is faster than trace.
syntax: /bot goal_setproperty entityname <entity name>
example: /bot goal_setproperty entityname barrier
IgnoreEntity
This property should be used only if trace property does not work, because TraceLine can't find OID entity or if function GetConstructableState always returns -1. After you set ignoreentity to true, you must use function SetAvailableMapGoals to enable or disable goal. The goal is not automatically disabled after the objective is constructed.
syntax: /bot goal_setproperty ignoreentity <0|1>
example: /bot goal_setproperty ignoreentity
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
wait
Sets delay in seconds after objective is built. Useful for bridges or ramps which have blockable waypoint connection.
syntax: /bot goal_setproperty wait <float seconds>
example: /bot goal_setproperty wait 2.1

Video Tutorial Version


Adding a Build Goal