Page MenuHomeFeedback Tracker

Command Request: Introduce a command to get in model vehicle seat coordinates
Acknowledged, WishlistPublic

Description

Proposed syntax:
ARRAY = getVehicleSeatLocations _unit
Returns: A multi dimensional array consisting of a seat's name, index, and coordinates in model. The coordinates are the physical location a unit sits in a vehicle.

Example: The command used on a "B_Heli_Light_01_F" would return (coordinates approximate): "cargo",0,[-0.352539,0.29834,-0.291833,["cargo",1,[0.297852,0.297852,-0.291884]],["cargo",2,[0.921143,0.964355,-0.451085]],["cargo",3,[-0.910889,0.0620117,-0.454864]],["cargo",4,[-0.945068,0.969727,-0.459795]],["cargo",5,[0.922852,0.0664063,-0.457087]],["driver",0,[-0.346436,1.23779,-0.210046]],["turret",[0],[0.344727,1.17432,-0.206571]]]

Reasoning: I am developing a mod titled the Action Button Mod. To facilitate precise vehicle boarding the coordinates of each seat in a vehicle must be known. To my knowledge there is no way of obtaining these coordinates for any given vehicle in real time in game.

Details

Legacy ID
3389810895
Severity
None
Resolution
No Bug
Reproducibility
N/A
Category
Feature Request
Additional Information

Currently, getPos doesn't work on units inside closed armored vehicles. If it doesn't make sense to/is not feasible to return seat positions in enclosed vehicles, return an empty array on these vehicles.

Additional Example: The command used on a "B_Heli_Transport_01_F" would return (coordinates approximate): "cargo",0,[0.779785,1.20068,-1.15307,["cargo",1,[0.70874,2.73389,-1.15057]],["cargo",2,[-0.619629,1.23633,-1.18447]],["cargo",3,[-0.715088,2.72363,-1.17679]],["cargo",4,[0.290283,1.27051,-1.19344]],["cargo",5,[-0.224854,1.41748,-1.24763]],["cargo",6,[0.321289,2.59668,-1.24168]],["cargo",7,[-0.229736,2.6626,-1.1905]],["driver",0,[-0.450195,5.63965,-0.982065]],["turret",[0],[0.649414,5.63965,-0.982065]],["turret",[1],[-0.487793,4.0293,-0.908671]],["turret",[2],[0.616211,4.09326,-0.90678]]]

Event Timeline

DoctorSheep edited Additional Information. (Show Details)
DoctorSheep set Category to Feature Request.
DoctorSheep set Reproducibility to N/A.
DoctorSheep set Severity to None.
DoctorSheep set Resolution to No Bug.
DoctorSheep set Legacy ID to 3389810895.May 7 2016, 7:38 PM

The command is selectionPosition, the problem is the absense of actual selections for the seats.

On further testing, selectionPosition can be used to retrieve memory point positions just fine. Those could be found in config

MH-9

heli selectionPosition "pos driver";
heli selectionPosition "pos codriver";
heli selectionPosition "pos cargo lf";
heli selectionPosition "pos cargo l";
heli selectionPosition "pos cargo lr";
heli selectionPosition "pos cargo rf";
heli selectionPosition "pos cargo r";
heli selectionPosition "pos cargo rr";

Going to resolve this.

Killzone Kid, the only vehicles with memory points corresponding roughly to actual seat locations are the FFV enabled ones (added only after the FFV stage). All other vehicles lack per seat memory points and use general memory points like a single "pos cargo" for cargo seats.

I think this is more of a config issue, as we do have the means to retreve this informatin whenever alvailable. Would you like to make another ticket regarding config problem?

It seems to me like requesting it as a config issue would result in more work having to be done to add the memory points AND any models created by the community not having those points would be useless to me AND memory points added to the config are optional.

The "proxy:" locations are exactly what I'm looking for, they are guaranteed to exist, I just need a way to access them. Whether it be through selectionPosition or a command that just pulls all of the locations into an array like this ticket.

https://dl.dropboxusercontent.com/u/1132210/Screenshot%202014-10-23%2009.24.18.png

Ok, as you wish, I am unresolving this.

Goschie added a subscriber: Goschie.May 7 2016, 7:38 PM

In all my attempts to find seat locations, the only known way is to work with global units with moveindriver.. ect. But its incredibly brute force, takes up network usage in MP, takes up needless amounts of resources, and made me cringe when I coded it. Basically, the brute force method does not work locally. The only real way of resolving this is by giving out the commands as doctorsheep said, or forcing BIS and the community to add the selection position names in config.