Jump to content
Repentz

[Tutorial] Realistic Vehicle Towing

Recommended Posts

Have this on my server and can be used to troll , Blows up anything in its path and had to remove it :( good script though.

Share this post


Link to post
Share on other sites
2 hours ago, Dave650 said:

Have this on my server and can be used to troll , Blows up anything in its path and had to remove it :( good script though.

We gave it to medics only to prevent that from happening. Also gives the medics something to do.

Share this post


Link to post
Share on other sites

any way to set it up so you can only tow one vehicle at a time? want this in my server but im a tad worried about the whole line of offroads you showed off in your video <3

Share this post


Link to post
Share on other sites

Hello, it didn't work for me.

I don't have any errors.

I've placed this

diag_log "Attempting to initialize Towing Script...";
[] execVM "core\initTowing.sqf";

in fn_initMedic.sqf, but I don't have the action to deploy the rope.

Any idea ?

Share this post


Link to post
Share on other sites
On 6/8/2017 at 10:26 AM, ✪ Herax said:

Hello, it didn't work for me.

I don't have any errors.

I've placed this

diag_log "Attempting to initialize Towing Script...";
[] execVM "core\initTowing.sqf";

in fn_initMedic.sqf, but I don't have the action to deploy the rope.

Any idea ?

I'm also having a similar problem on framework 5.0 with no errors in the rpt. 

Share this post


Link to post
Share on other sites
Spoiler

11:20:20 Error: Object(4 : 14) not found
11:20:20 Scripting function 'sa_hide_object_global' is not allowed to be remotely executed
11:20:23 Wrong player index passed to NetworkObjectInfo::GetPlayerObjectInfo - max=0, received=1
11:20:23 In last 5000 miliseconds was lost another 749 these messages.
11:20:26 Scripting function 'sa_hint' is not allowed to be remotely executed
11:20:28 Wrong player index passed to NetworkObjectInfo::GetPlayerObjectInfo - max=0, received=1
11:20:28 In last 5000 miliseconds was lost another 749 these messages.
11:20:32 Scripting function 'sa_hint' is not allowed to be remotely executed
11:20:33 Wrong player index passed to NetworkObjectInfo::GetPlayerObjectInfo - max=0, received=1
11:20:33 In last 5000 miliseconds was lost another 749 these messages.
11:20:35 Scripting function 'sa_hint' is not allowed to be remotely executed
11:20:38 Wrong player index passed to NetworkObjectInfo::GetPlayerObjectInfo - max=0, received=1
11:20:38 In last 5000 miliseconds was lost another 749 these messages.
11:20:43 Wrong player index passed to NetworkObjectInfo::GetPlayerObjectInfo - max=0, received=1
11:20:43 In last 5000 miliseconds was lost another 749 these messages.
11:20:45 Error: Object(4 : 15) not found
11:20:45 Scripting function 'sa_hide_object_global' is not allowed to be remotely executed
11:20:47 Scripting function 'sa_hide_object_global' is not allowed to be remotely executed
11:20:48 Wrong player index passed to NetworkObjectInfo::GetPlayerObjectInfo - max=0, received=1
11:20:48 In last 5000 miliseconds was lost another 737 these messages.
11:20:52 Scripting function 'sa_hint' is not allowed to be remotely executed
11:20:53 Wrong player index passed to NetworkObjectInfo::GetPlayerObjectInfo - max=0, received=1
11:20:53 In last 5000 miliseconds was lost another 752 these messages.
11:20:55 Scripting function 'sa_hint' is not allowed to be remotely executed
11:20:58 Wrong player index passed to NetworkObjectInfo::GetPlayerObjectInfo - max=0, received=1
11:20:58 In last 5000 miliseconds was lost another 752 these messages.
11:21:00 Scripting function 'sa_hint' is not allowed to be remotely executed
11:21:03 Wrong player index passed to NetworkObjectInfo::GetPlayerObjectInfo - max=0, received=1
11:21:03 In last 5000 miliseconds was lost another 749 these messages.
11:21:06 Scripting function 'sa_hide_object_global' is not allowed to be remotely executed
11:21:08 Wrong player index passed to NetworkObjectInfo::GetPlayerObjectInfo - max=0, received=1
11:21:08 In last 5000 miliseconds was lost another 749 these messages.

11:21:06 Scripting function 'sa_hide_object_global' is not allowed to be remotely executed

11:20:52 Scripting function 'sa_hint' is not allowed to be remotely executed

???

Share this post


Link to post
Share on other sites

Probably dont need all these but I added them all anyway, add this to your CfgRemoteExec.hpp under class Functions if you're having any bugs or "scripting functions is not allowed to be remotely executed"


        F(SA_Set_Owner,ANYONE)
        F(SA_Simulate_Towing,ANYONE)
        F(SA_Hide_Object_Global,ANYONE)
        F(SA_Attach_Tow_Ropes,ANYONE)
        F(SA_Take_Tow_Ropes,ANYONE)
        F(SA_Pickup_Tow_Ropes,ANYONE)
        F(SA_Drop_Tow_Ropes,ANYONE)
        F(SA_Put_Away_Tow_Ropes,ANYONE)
        F(SA_RemoteExec,ANYONE)
        F(SA_RemoteExecServer,ANYONE)

Share this post


Link to post
Share on other sites

Old Thread but for new people useful, so they don't need to browse through the whole thread.

At Line 864;

Modify the Line like this

  • if (playerSide isEqualTo independent) then {
        [] call SA_Advanced_Towing_Install;
        };
     

Make sure if you can't start it through the mission.pbo, you set it as an addon or paste it within @yourmod/addons/YOURTOW.pbo.



And also if you want to enable medics/cops to "tow" locked vehicles, change those lines;
 

  • 466, 512, 558, 623   
  • _canBeTowed = false;

to;

  • _canBeTowed = true;
     

This will enable them to use the "tow-ropes" even if vehicles are locked. Make sure you create an appropriate "String" by letting them know the Vehicle is locked.

Otherwise you can delete the if sequence of above lines.

Share this post


Link to post
Share on other sites

Hello, 

the mod works fine for everybody when we start it as a addon.

We want to allow the towing only for the medics.

But if we do this, the script doesn´t works for anybody.

On 2.11.2017 at 1:42 PM, Nipvu said:

At Line 864;

Modify the Line like this

  • if (playerSide isEqualTo independent) then {
        [] call SA_Advanced_Towing_Install;
        };

Has anybody a solution?

Edited by Nem0x

Share this post


Link to post
Share on other sites

add to the line 47 this:

if(playerside IsEqualTo civilian ) exitWith {};

Quote

// Prevent advanced towing from installing twice
if(playerside IsEqualTo civilian ) exitWith {};
if(!isNil "SA_TOW_INIT") exitWith {};
SA_TOW_INIT = true;

in this way the script will work only for police and med . 

But I can not make it work only if you have a license.
has anyone succeeded?

Share this post


Link to post
Share on other sites

Hello, I have a problem when trying to deploy a tether, the tether is not present...in the editor everything works and as I come on the server and I try to make there it is impossible..all tried already, please help

Edited by nik93651120

Share this post


Link to post
Share on other sites

not working for  i can watch the function  but not work

i found this in rpt server

"Server FSM executed"
"Attempting to initialize Towing Script..."
Attempt to override final function - bis_fnc_storeparamsvalues_data
"Advanced Towing Loading..."
"Advanced Towing Loaded"

 

and in client side this

"Tentando inicializar o script de reboque ..."

Warning Message: Script core \ initTowing.sqf not found

 

 

 

Scripting function 'sa_take_tow_ropes' is not allowed to be remotely executed
23:16:57 Scripting function 'sa_take_tow_ropes' is not allowed to be remotely executed
23:17:07 Scripting function 'sa_take_tow_ropes' is not allowed to be remotely executed
23:17:10 Scripting function 'sa_take_tow_ropes' is not allowed to be remotely executed
23:17:12 Scripting function 'sa_take_tow_ropes' is not allowed to be remotely executed
23:17:19 Scripting function 'sa_take_tow_ropes' is not allowed to be remotely executed
23:17:21 Scripting function 'sa_take_tow_ropes' is not allowed to be remotely executed

 

 

someone have idea??

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...

Important Information

By using this site, you agree to our Terms of Use.