Jump to content

Recommended Posts

I am working on a mission where I want a civilian to be discovered in writhing agony pain such as the first aid, and first aid simulation modules provide BUT I don't want to have to shoot him to get it to happen. Does anyone know how I can have him discovered already in agony an writhing?

I have created the civilian and synced him to the medical modules. Then I set his damage anywhere from .1 to .9 but he will not drop to the ground writhing in agony, he just stands there in his wounded state. How can I call the animation that will force him into the writhing agony state? I've never really tried to call an animation before.

If I simply shoot him he will drop into the desired animation.

Share this post


Link to post
Share on other sites

you could just use the animation to make it look like he's hurt.. prob wont work right if he is actually hurt to much though. and "playmove" animation wont last forever..

unitname playMove "AinjPpneMstpSnonWrflDnon"; 

Share this post


Link to post
Share on other sites

Do you want to be able to heal him? If so, with first aid modules linked, use unitname setunconscious true;

If not, you can do this:

unit playactionnow "agonyStart";
unit playAction ("GestureSpasm2");

This looks a bit weird at first, it's jerky and the unit sinks into the floor a bit but then after a few seconds it's fine.

Share this post


Link to post
Share on other sites

Also try:

unitname setUnconscious true;

(2nd Ranger beat me to it.....)

Edited by DreadPirate
Scooped!

Share this post


Link to post
Share on other sites

Thanks guys, I am going to test these out and see how they will work out. Yes, ultimately the goal will be a civilian that is badly injured and needs to be healed and/or carried out.

Share this post


Link to post
Share on other sites

If you don't want him to stand, the easiest method would be to cripple his legs.

unitname setHit ["legs", 0.9];

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  

×