Page MenuHomeFeedback Tracker

Land_Destroyer_01_Boat_Rack_01_F doesn't update or delete its triggers
New, NormalPublic

Description

The destroyer boat rack can be placed in the editor and rotated and will provide a "Recover boat" action as expected. Boat racks created with createVehicle and left in the default orientation will provide a "Recover boat" action as expected. Once the boat rack's position or orientation is changed (setDir and setPositionASL were tested), the associated triggers will not be updated, preventing the "Recover boat" action from behaving as expected.

Deleting a destroyer boat rack will leave the two triggers behind.

Details

Severity
Minor
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Engine
Steps To Reproduce

Start an editor session
Place a boat rack, oriented as desired, named myboatrack
Place a player near the boat rack
Start multiplayer session (single player not tested)

Issue the console command

mydetectors = allMissionObjects "emptydetector" select { getposasl _x distance2D getposasl player < 100 };

Issue the command and note that there are two detectors

count mydetectors;

Issue the command to record their positions

mypositions = mydetectors apply { getposasl _x };

Issue the command and note that the boat rack rotates 90 degrees

myboatrack setdir (getdir myboatrack + 90);

Issue the commands and note that there are still two detectors

mydetectors = allMissionObjects "emptydetector" select { getposasl _x distance2D getposasl player < 100 };
count mydetectors;

Issue the commands and note that the detectors have not moved

mydistances = [];
{ mydistances pushback (getposasl _x distance (mypositions select _forEachindex)) } forEach mydetectors;
mydistances

Issue the command to delete the boat rack

deleteVehicle myboatrack;

Issue the commands and note that there are still two detectors

mydetectors = allMissionObjects "emptydetector" select { getposasl _x distance2D getposasl player< 100 };
count mydetectors;

Additional Information

This prevents the use of spawned boat racks during a session, which we do for our operations. It can be worked around by locating and moving the detectors manually.

Event Timeline

JB47394 created this task.May 25 2020, 11:52 PM