Page MenuHomeFeedback Tracker

"TurnOut" event handler doesn't fire
Feedback, NormalPublic

Description

The "TurnOut" event handler doesn't seem to fire on custom vehicles.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
1607
Category
Config
Steps To Reproduce
  1. Add event handler to fire on turnout to vehicle class.
  2. Turn out on custom vehicle in game.
  3. Event handler doesn't fire.
Additional Information

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

Neciota created this task.Jan 19 2017, 5:49 PM
Neciota edited Steps To Reproduce. (Show Details)
razazel claimed this task.Jan 25 2017, 3:27 PM
razazel changed the task status from New to Reviewed.
razazel added a subscriber: razazel.

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!

razazel changed the task status from Reviewed to Feedback.Jan 25 2017, 5:01 PM

Glad to hear that, I will check this again just to be sure and will let you know :)

Thanks for the info