Arma 3's ladders are very poorly loved. I would like to improve them if we have some commands:
Getter 1: Am I on a ladder? If so, which building/which ladder/how's the progress?
Getter 2: How long is the ladder on the building?
Setter: Sets the progress of the ladder (can teleport someone to the ladder, or force leave it)
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- N/A
- Operating System
- Windows 10 x64
- Category
- Movement
Event Timeline
Comment Actions
Getter2 is not needed. You only need to know which ladder.
All of them can be combined in one command:
getLadder player
returns:
[object, "ladderCfgName", progress]
This comment was removed by LouMontana.
Comment Actions
Since ladders are just an array inside CfgVehicles definition, it should a Number instead instead of config name. But overall I guess that having all in one command should be fine.
[ENTITY, INDEX, POSITION] = getLadder UNIT;
Alternative names: getUnitLadder, getLadderState, getUnitLadderState
Comment Actions
I'd say a command to get all ladders in building, which returns array of start/end positions in model coordinates
And one command that returns building entity and ladder index and position on ladder in percent
(You can then calculate position in meters or entity position by getting that buildings ladders and grabbing by index