Page MenuHomeFeedback Tracker

wrong params in GETIN/GETOUT Eventhandler on Wiki
New, NormalPublic

Description

wikipage say;
https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#GetIn
https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#GetOut

params ["_vehicle", "_role", "_unit", "_turret"];

which is incorrect
the correct params is :

params ["_unit", "_role", "_vehicle", "_turret"];

Details

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

add vehicle with

this addEventHandler ["GetIn", { 
 params ["_vehicle", "_role", "_unit", "_turret"];
_unit allowdamage false;
}];
this addEventHandler ["GetOut", { 
 params ["_vehicle", "_role", "_unit", "_turret"];
_unit allowdamage true;
}];

and check how vehicle switch allowdamage

Event Timeline

I’m like 99.9% sure you made mistake

I’m like 99.9% sure you made mistake

I am shocked, The problem occurred a dozen times after restarts in the editor with the code I gave earlier. In those cases, the vehicle was turning off/on taking damage, not the unit.
Now it works as expected,
where I didn't change anything :/
I apologize for posting the ticket too quickly without much checking if the problem will occur after restarting the game

This comment was removed by BIS_fnc_KK.