Jump to content
Sign in to follow this  
Waldemar 337

Repair Event Handler

Recommended Posts

I have not found a 'repair' event handler in the list ( https://community.bistudio.com/wiki/Arma_3:_Event_Handlers ).

 

Tried to use the 'Dammaged' handler, but it does not seem to work with ACE3 repair, or I am doing it wrong.

The "HandleDamage" and "HandleHeal" event handlers do not seem to work too.

 

some.sqf:

_taskTargetObject addEventHandler 
[
	"Dammaged", 
	{ 
		_this spawn 
		{
			(_this select 0) call Mca_fnc_onVehicleRepaired;
		} 
	}
];

 

Mca_fnc_onVehicleRepaired.sqf:

quest_giver globalChat "onRepair"; //TODO

 

The script is not executed when doing the full repair using the ACE3.

 

Seems that even the ACE3 itself does not have a handler for this.

https://ace3mod.com/wiki/framework/events-framework.html

 

How can I create or use the 'repair' E.H. ?

Do I have to invent the wheel (create a timer which checks the life status) ?

 

Thank you.

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  

×