Jump to content
Sign in to follow this  
willithappen

Troubles with "GetInMan" and "GetOutMan" event Handlers.

Recommended Posts

Hi all,

 

Im trying to create a very simple log system to find out when a player gets in and out of a vehicle of a certain type.

I have the below executed from initPlayerLocal. I have tried a few different combinations of player in the init and in the script itself with no success.

 

The problem is weird as the Killed event handler works perfectly fine and displays output in the .rpt file.

both GetIn/GetOut eventHandlers do nothing, there is no error nor log placed in the .rpt.

What am I doing wrong?

player execVM "WH_Logging.sqf";

WH_Logging.sqf

// Kills - NAME Killed by NAME
_this addEventHandler ["Killed", "diag_log format ['[--WH Logs--][**KILLS**]%1 Killed by %2',_this select 0,_this select 1]"];
// Vehicle GetIn/GetOut Logs - NAME SEAT VEHICLE
_this addEventHandler ["GetInMan", "diag_log format ['[--WH Logs--][**GETIN**]%1 Enters %3 in %2 Seat',_this select 0,_this select 1,_this select 2]"];
_this addEventHandler ["GetOutMan", "diag_log format ['[--WH Logs--][**GETOUT**]%1 Exits %3 From %2 Seat',_this select 0,_this select 1,_this select 2]"];

Share this post


Link to post
Share on other sites

eventHandlers do nothing, there is no error nor log placed in the .rpt.

What am I doing wrong?

 

Hi willithappen,

 

I too found out about this with 'GetInMan' eventhandler just yesterday.

It's probably just another thing that went wrong with the latest BIS update :(

 

Nikander

Share this post


Link to post
Share on other sites

Hi willithappen,

 

I too found out about this with 'GetInMan' eventhandler just yesterday.

It's probably just another thing that went wrong with the latest BIS update :(

 

Nikander

Bummer, is anyone aware of a way to achieve a similar goal at the moment then?

Share this post


Link to post
Share on other sites

Also noticed that both GetInMan and GetOutMan seem to be broken right now.

 

The only workaround would be to use the regular "GetIn" and "GetOut" EHs right now, but those you'd have to add to every single vehicle in your mission:

{
    _x addEventHandler ["GetIn", "diag_log format ['[--WH Logs--][**GETIN**]%1 Enters %3 in %2 Seat',_this select 2,_this select 1,_this select 0]"];
    _x addEventHandler ["GetOut", "diag_log format ['[--WH Logs--][**GETOUT**]%1 Exits %3 From %2 Seat',_this select 2,_this select 1,_this select 0]"];
} foreach vehicles;

EDIT:

@killzone_kid : Version 1.56.134787, current "stable".

 

EDIT2:

Didn't consider that with GetIn, _this select 0 and _this select 2 have to be swapped. Fixed in example.

Share this post


Link to post
Share on other sites

@killzone_kid : Version 1.56.134787, current "stable".

 

 

 

Well, this is why we have game version number against new commands and EHs, the version they were added it. GetInMan/GetOutMan says 1.57, so it cannot be in 1.56 Although adding these EHs returns legit index even on 1.56, those were dummy EHs that didn't do anything.

https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#GetInMan

https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#GetOutMan

Share this post


Link to post
Share on other sites

I've quite stupidly managed to read the version number incorrectly... 

Confused as to why there was no error however telling me the EH doesn't exist?

Share this post


Link to post
Share on other sites

 

Confused as to why there was no error however telling me the EH doesn't exist?

 

Because there are no errors:

 

player addEventHandler ["BlahBlahBladiblah", {}]; // no error

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×