Jump to content
Sign in to follow this  
Bnae

Handcuff civilians UPDATED

Recommended Posts

Hello again!

UPDATED WHOLE TOPIC

 

So as harmdhast said, using keyBind and cursorTarget would be clever.

 

The basic idea is to handcuff / restrain / tie up etc. and escort non playable civilians in COOP mission.

 

I'm not going to do anything too fancy, so all the ideas are good and helpful.

 

-

 

init.sqf

[]execVM "handcuff.sqf";

handcuff.sqf

private ["_unit","_target"];

_unit = _this select 0;
_target = cursorTarget;

if (side _target == CIV) then {
    
    if (isPlayer _unit && local _unit) then {

        actionUnit = _unit addAction ["Handcuff", "cuffscript.sqf"];

        waitUntil {_target != cursorTarget};

        sleep 1;

        _unit removeAction actionUnit;

    };
};

modified from Demonized's script and definetly not working.

 

Because i don't completely understand cursorTarget command this is kinda hard.

 

I know this is at very beginning and i'm asking a lot. But i keep testing and learning meanwhile so i can move on.

 

-

 

Otherwise i'm going to do simple addAction to all civilians.

 

-

 

If you know there is already similiar scripts, please feel free to share it.

Share this post


Link to post
Share on other sites

Why not adding a keyBind for handcuffing ?

Then you can use cursorTarget as the target and forget these crappy addActions.

 

If you like this solution let me know or if you want to do it in any particular way. Then I can help you more :)

Share this post


Link to post
Share on other sites

Why not adding a keyBind for handcuffing ?

Then you can use cursorTarget as the target and forget these crappy addActions.

 

If you like this solution let me know or if you want to do it in any particular way. Then I can help you more :)

 

Yes please!

 

That little idea of mine was for the safebox/ vault. That handcuffing is still wide open for great ideas like that.

Share this post


Link to post
Share on other sites

UPDATED

Share this post


Link to post
Share on other sites

UPDATE

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  

×