Page MenuHomeFeedback Tracker

[Feature Request] Ladder related commands
New, NormalPublic

Description

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)

Details

Severity
Minor
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Movement

Event Timeline

POLPOX created this task.Apr 28 2023, 6:54 PM

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.
h- added a subscriber: h-.Apr 29 2023, 9:28 AM

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]

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

_SLIN_ added a subscriber: _SLIN_.May 1 2023, 6:53 AM
dedmen added a subscriber: dedmen.May 1 2023, 4:35 PM

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