Page MenuHomeFeedback Tracker

formationPosition command has wrong return when used on a created wheeled vehicle
New, NormalPublic

Description

Steps To Reproduce script is executed, vehicle_2 moves to the same position as vehicle_1.
This happens when the class of vehicle_2 is a wheeled vehicle.

Change _vehicleClass to “B_MBT_01_cannon_F”, vehicle_2 will move to the same location as the formation position.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  1. Open Eden Editor and Put player unit.
  2. Start and excute script via Debug console
_vehicleClass = "B_MRAP_01_hmg_F";
_position = player getRelPos [30, 0];
_group = createGroup [west, true];

_vehicle1 = createVehicle [_vehicleClass, [0,0,0], [], 0, "CAN_COLLIDE"];
_group createVehicleCrew _vehicle1;
_group addVehicle _vehicle1;

_vehicle1 setPos _position;

_vehicle2 = createVehicle [_vehicleClass, [0,0,0], [], 0, "CAN_COLLIDE"];
_group createVehicleCrew _vehicle2;
_group addVehicle _vehicle2;

_formationPos = formationPosition effectiveCommander _vehicle2;
_vehicle2 setPos _formationPos;
}

Event Timeline

Yomo6833 created this task.Thu, Feb 13, 6:42 AM