Jump to content
Sign in to follow this  
Davis Welder

Action heal in car

Recommended Posts

hello I would like to do a wheel action when we are in a vehicle to trigger a care script. But I can't seem to find any help, I guess it's with a useraction. can you help me thank you

Share this post


Link to post
Share on other sites

I'm not sure if this will help you, but this is how you could add an action to the player when they are in a vehicle. In this example, the script myCareScript.sqf is called, and the player is passed to this script.
 

player addAction ["care", {
	_player = _this select 3 select 0;
	[_player] execVM "myCareScript.sqf";
} , [player], 1.5, true, true, "","(!(isNull objectParent Player))"];

 

If you meant to add an action in ACE, this might help you:

 

  • Like 1

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  

×