Jump to content
Sign in to follow this  
derdoe

ACE 2: make unit unconscious from sqf file

Recommended Posts

Hi,

i have been trying around for several days now, also couldnt find any post that would solve my problem.

I created a unit via createUnit command. Ace wounding system module is place in Editor.

I want to put that unit unconscious via sqf script from a separate file. Calling the script and so on works fine, though the units dont fall unconscious.

_victim1 = "Worker1" createUnit [[_x + 2.4, _y - 4, _z],_civgroup];
_victim2 = "Worker2" createUnit [[_x - 1.7, _y + 5, _z],_civgroup];

[_victim1,0.5] call ace_sys_wounds_fnc_addDamage;
[_victim1, 1] call ace_blackoutAll;

[_victim2,0.5] call ace_sys_wounds_fnc_addDamage;
[_victim2, 1] call ace_blackoutAll;
hint "victims injured";

Anyone has an idea? Do i have to somehow load the ACE functions before using them?

Any help is appreciated!

Share this post


Link to post
Share on other sites
Guest

ACE related questions belong in the ACE thread.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×