The "TurnOut" event handler doesn't seem to fire on custom vehicles.
Description
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Operating System Version
- 1607
- Category
- Config
- Add event handler to fire on turnout to vehicle class.
- Turn out on custom vehicle in game.
- Event handler doesn't fire.
Code in the custom vehicle class:
class EventHandlers: EventHandlers { class UK_MBT_01 { Turnout = "hint 'EH be working fam'"; }; };
No hint is shown on turn out.
Event Timeline
Hello,
thank you for the feedback.
Is it possible that the config might be incorrect?
Following the documentation here
https://community.bistudio.com/wiki/ArmA:_Event_Handlers#Event_Handlers_in_Config.cpp
I would expect it to look like this.
class UK_MBT_01: armored //dunno here, { //... //(other config code) //... class EventHandlers { turnout = "hint 'EH be working fam'"; }; };
Unfortunately my knowledge of the config is not so great so I will check that out with other devs, but I think you might give this a shot?
I will get back to you once I have some more info.
Thank you :)
Hi razazel, thank you for your time. I installed the dev branch and it works on there perfectly, strangely enough. I discussed it with some other modders in the arma 3 discord and they also said it didn't work for them on main, but did on dev so I suppose someone already fixed what was wrong and it will work next patch.
Thanks!
Glad to hear that, I will check this again just to be sure and will let you know :)
Thanks for the info