Page MenuHomeFeedback Tracker

lockTurret doesn't work immediately after vehicle creation, for a specific type of FFV turret
New, NormalPublic

Description

On certain vehicles, some FFV positions can't be locked with lockTurret immediately after the vehicle is created. This applies to e.g. the front cargo bay seats in the Offroad. lockTurret does work if a delay is introduced between vehicle creation and the execution of the command. (Mission start counts as vehicle creation for preplaced vehicles; this affects the Editor init field for vehicles.)

This problem appears to be exclusive to FFV positions where the option to turn out and turn in is available. For normal turrets and FFV positions, no delay is required.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Firing from Vehicles
Steps To Reproduce

Repro mission is attached with comments. Code in init fields of vehicles.

Event Timeline

NikkoJT created this task.Wed, Nov 10, 7:07 PM

how do you test that it doesn’t work

The mission includes some comments with testing instructions. I guess I'll write them out here as well....?

The vehicles on the left have this lockTurret [[2],true] in their init, with no delay. This should lock the Left Passenger 2 (MB 4WD) and Left Passenger 1 (Offroad) positions. By playing the mission and attempting to get into the vehicle in those positions, you can see that it doesn't work - the seats are still available and can be got into.

The vehicles on the right have the same command with a sleep 1 before it. By playing the mission and attempting to get into the vehicle in those positions, you can see that it does work - the seats are not available and can't be got into.

The Hunter GMG has the command with no delay, but its gunner seat cannot be got into - proving that the problem only affects a certain type of turret seat, not all.

This comment was removed by Geez.
Geez added a subscriber: Geez.Mon, Nov 15, 1:04 PM