Jump to content
dexatrin82

Zipties With Gag & Blindfold....

Recommended Posts

I am using this tutorial, and I have installed it, and almost everything works, I have no server side rpt errors from it. My client side looks clean as well, I'll post them if I can, but when I am trying to restrain someone who is knocked out, it tells me they must be knocked out or surrender first. Any help would be appreciated, here are my files that throw the check and send back that result and my rpt file.

fn_tieingAction.sqf arma3server_2019-05-11_23-00-16.rpt

Share this post


Link to post
Share on other sites
On 5/12/2019 at 4:23 AM, dexatrin82 said:

I am using this tutorial, and I have installed it, and almost everything works, I have no server side rpt errors from it. My client side looks clean as well, I'll post them if I can, but when I am trying to restrain someone who is knocked out, it tells me they must be knocked out or surrender first. Any help would be appreciated, here are my files that throw the check and send back that result and my rpt file.

fn_tieingAction.sqf 1.39 kB · 0 downloads arma3server_2019-05-11_23-00-16.rpt 2.55 MB · 1 download

Please make sure you read the whole thread before just copying and pasting stuff into your server. This was addressed in the thread that you didn't even link to:
 

^ That specific comment is the fix.

  • Like 1

Share this post


Link to post
Share on other sites

I was looking through that, I guess I might have double hit next or something and missed that page, I was looking back and through for it. But at 3 am(my usual dev time) I was probably too tired to notice.

Share this post


Link to post
Share on other sites
30 minutes ago, dexatrin82 said:

I was looking through that, I guess I might have double hit next or something and missed that page, I was looking back and through for it. But at 3 am(my usual dev time) I was probably too tired to notice.

Did that solve this for you?

  • Like 1

Share this post


Link to post
Share on other sites
10 hours ago, imthatguyhere said:

Did that solve this for you?

That specifically did not, but thats because I didn't use your BOM Bomb, and had some Hidden characters, I did run into another issue which you graciously helped me with, which involved pulling out of vehicles, and I will post the basic code, and the fixed code, so that civilians can pull ziptied/restrained civs/cops out of vehicles and police can pull restrained/ziptied civs/cops out as well. Thanks to @imthatguyhere we have a flawlessly working ziptie system in AYU 5.0 Framework. 

Original fn_pulloutAction.sqf:

#include "..\..\script_macros.hpp"
/*
    File: fn_pulloutAction.sqf
    Author: Bryan "Tonic" Boardwine
    Description:
    Pulls civilians out of a car if it's stopped.
*/
private ["_crew"];
_crew = crew cursorObject;

{
    if !(side _x isEqualTo west) then {
        _x setVariable ["transporting",false,true]; _x setVariable ["Escorting",false,true];
        [_x] remoteExecCall ["life_fnc_pulloutVeh",_x];
    };
} forEach _crew;

Working:

#include "..\..\script_macros.hpp"
/*
    File: fn_pulloutAction.sqf
    Author: Bryan "Tonic" Boardwine

    Description:
    Pulls civilians out of a car if it's stopped.
*/
private _crew = crew cursorObject;
 
{
    if (_x getVariable ["tied", false] || _x getVariable ["restrained", false]) then {
        _x setVariable ["transporting",false,true]; _x setVariable ["Escorting",false,true];
        [_x] remoteExecCall ["life_fnc_pulloutVeh",_x];
    };
    true;
} count _crew;

Original fn_pullOutVeh.sqf:

/*
    File: fn_pullOutVeh.sqf
    Author: Bryan "Tonic" Boardwine
    Description:
*/
if (playerSide isEqualTo west || (isNull objectParent player)) exitWith {};
if (player getVariable "restrained") then {
    detach player;
    player setVariable ["Escorting",false,true];
    player setVariable ["transporting",false,true];
    life_disable_getOut = false;
    player action ["Eject", vehicle player];
    titleText[localize "STR_NOTF_PulledOut","PLAIN"];
    titleFadeOut 4;
    life_disable_getIn = true;
} else {
    player action ["Eject", vehicle player];
    titleText[localize "STR_NOTF_PulledOut","PLAIN"];
    titleFadeOut 4;
};

Working:

/*
    File: fn_pullOutVeh.sqf
    Author: Bryan "Tonic" Boardwine

    Description:

*/
if (isNull objectParent player) exitWith {};
if (player getVariable ["restrained", false]) then {
    detach player;
    player setVariable ["Escorting",false,true];
    player setVariable ["transporting",false,true];
    life_disable_getOut = false;
    player action ["Eject", vehicle player];
    titleText[localize "STR_NOTF_PulledOut","PLAIN"];
    titleFadeOut 4;
    life_disable_getIn = true;
}else {
    player action ["Eject", vehicle player];
    titleText[localize "STR_NOTF_PulledOut","PLAIN"];
    titleFadeOut 4;
};

 

Thank you again @imthatguyhere for your help.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...