Page MenuHomeFeedback Tracker

extend applicability of setDriveOnPath
New, NormalPublic

Description

setDriveOnPath turns out to be a very powerful command when it comes to precisely commanding vehicles by script.
The community was already quite creative with it:
https://www.reddit.com/r/arma/comments/5zu1ht/ai_with_setdriveonpath/

Unfortunately, the command currently fails for vehicles where the driver is not the effective commander.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 8 x64
Category
Scripting
Steps To Reproduce
  1. Place different vehicles in a line in Eden (e.g. Prowler Armed and Unarmed, Hunter Armed and Unarmed, Marshall)
  2. Place a player unit 50 m away perpendicular to the line.
  3. Play the mission.
  4. Target a vehicle and execute the code below with the console:
_vehicle = cursorObject;
systemChat format["Driver is eff. commander: %1 (%2)", effectiveCommander _vehicle == driver _vehicle, typeOf _vehicle];
_vehicle setDriveOnPath [position _vehicle, position player];
  1. Repeat for the other vehicles.
  2. Note the correlation.

Event Timeline

ookexoo created this task.Jul 4 2017, 12:45 AM
ookexoo updated the task description. (Show Details)
ookexoo edited Steps To Reproduce. (Show Details)Jul 4 2017, 12:48 AM