Jump to content
Sign in to follow this  
kvntvan

Help setting AI unconscious

Recommended Posts

Hi, I'm making a mission that requires the players to drag and load AI into vehicles but I'm having trouble setting the AI unconscious. I found a few solutions online that I couldn't get working. I had it working originally using a function from AGM but my group has switched from AGM to ACE3 finally and its broken the mission not having AGM. I tried to replicate the unconscious ai using the ace_medical_fnc_setUnconscious function, but I can't get it working, so does anyone know how to set a wounded or unconscious AI that players can interact with?

Share this post


Link to post
Share on other sites

Put this in the spawned AI's init maybe?:

this setUnconscious true;

Share this post


Link to post
Share on other sites

[bob, 9999, true] call ace_medical_fnc_setUnconscious;

Arguments:

 * 0: The unit that will be put in an unconscious state <OBJECT>

 * 1: Set unconsciouns <BOOL> (default: true)

 * 2: Minimum unconscious ACE_time <NUMBER> (default: (round(random(10)+5)))

 * 3: Force AI Unconscious (skip random death chance) <BOOL> (default: false)

 

Share this post


Link to post
Share on other sites

Is there a way to stop units death when in the the unconscious state so he will just stay unconscious and never die until he can get revived.

Share this post


Link to post
Share on other sites
[bob, 9999, true] call ace_medical_fnc_setUnconscious;

Arguments:

 * 0: The unit that will be put in an unconscious state <OBJECT>

 * 1: Set unconsciouns <BOOL> (default: true)

 * 2: Minimum unconscious ACE_time <NUMBER> (default: (round(random(10)+5)))

 * 3: Force AI Unconscious (skip random death chance) <BOOL> (default: false)

 

 

 

Hello everyone,

 

would this work on a dedicated server for a MP mission?

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  

×