betterDismissed.sqf (off duty waypoint script)

Party-approved future science plus handbooks for the revolution
Post Reply
darkChozo
Host
Posts: 206
Joined: Fri Aug 14, 2015 12:48 pm

betterDismissed.sqf (off duty waypoint script)

Post by darkChozo » Thu Oct 19, 2017 4:40 pm



Link to script

Did you know that there's a Dismissed waypoint in vanilla Arma? Probably not, because it's terrible and borderline useless. But in theory it's a useful thing, because sometimes you want to have units that are just hanging out and aren't particularly combat ready.

betterDismissed.sqf is a scripted waypoint script that simulates this kind of off duty behavior. A group executing a betterDismissed waypoint will split up into small subgroups of 1-4 men that loiter around in a specified radius. Subgroups will cluster together, face each other, and use casual animations to give the impression that they're just hanging out. Every so often, subgroups will relocate, because sitting in one place for too long is boooring.

When the group enters combat mode (automatically happens when they sense danger), the waypoint will end, the units will regroup, and they'll continue on their military business. This lets you create some more interesting behaviors (eg. a group that hangs around until they sense danger, at which point they start moving in a patrol pattern).

Usage:
  1. Download the script and put it in your mission
  2. Give a group a waypoint and set its type to Scripted
  3. Reopen the waypoint (because Arma) and set the Script parameter to

    Code: Select all

    betterDismissed.sqf
  4. Optionally, you can set the loiter radius using the following syntax

    Code: Select all

    betterDismissed.sqf [50]

Post Reply