Page MenuHomeFeedback Tracker

Unable to create building waypoints
Reviewed, NormalPublic

Description

The use pattern

addWaypoint
waypointAttachObject
setWaypointHousePosition

is setting waypoints at the building center for all buildings that I have tested on Altis, including

Land_Airport_Tower_F
Land_i_Stone_HouseBig_V1_F
Land_i_House_Small_01_V3_F
Land_i_House_Big_01_V1_F
Land_i_Shop_01_V2_F
Land_i_Shop_02_V1_F

It appears ubiquitous, though "Land_Medevac_HQ_V1_F" ignores the attach and house position calls entirely, instead setting the waypoints at the exact positions supplied in the addWaypoint calls.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
AI Pathfinding / Motion
Steps To Reproduce

Configure the following:

  1. Playing a game where you have Zeus rights and debug console rights.
  2. There is a friendly unit called "myman".
  3. Your character is looking at a building with building positions. A good test is "Land_Airport_Tower_F".

Issue the following command block in the debug console

{
private _waypoint = group myman addWaypoint [_x, 0];
_waypoint waypointAttachObject cursorobject;
_waypoint setWaypointHousePosition _forEachIndex;
} forEach (cursorobject buildingPos -1);

Switch to Zeus and inspect myman's waypoints. They will all be coincident at what I assume is the model origin of the building.

Additional Information

The position supplied to addWaypoint doesn't have any influence on the placement of the waypoints.

Specifying the building by id or object doesn't have any influence.

Swapping the order of waypointAttachObject and setWaypointHousePosition doesn't have any influence.

Event Timeline

JB47394 created this task.Apr 17 2018, 8:26 PM
Wulf added a subscriber: Wulf.Apr 20 2018, 1:32 PM

Hello.

Could you please upload the test mission here?

Thank you.

The mission file places two soldiers and a Zeus. You're locked into Zeus. Rise straight up about 10 meters for the best view. The first soldier will attempt to visit every building position of the House_F closest to it via waypointAttachObject and setWaypointHousePosition. The second soldier will attempt to visit every building position of the House_F closest to it via coordinate. The second is provided as a sanity check as well as for contrast.

Note that the first soldier has all waypoints at one position.

Wulf added a comment.Apr 25 2018, 4:55 PM

Please upload the whole folder not just the sqm. Thank you.

Please create a folder with the suffix Altis and put the file in it. Thank you.

Wulf changed the task status from New to Reviewed.Apr 26 2018, 1:45 PM