Jump to content

Bike,Quad,Mosqito Crafting Script


Amdathlon

Recommended Posts

Maybe do a script to operate in a way that should pm me a letter! I'm sorry that I have not been for a few days but had problems! Coming Soon everyone a menu that players can use the script for anyone who wants to operate the craft you can write me in Private! sorry for my bad english for knowledge!

Link to comment
Share on other sites

Ok, I don't understand why my vehicle disappear after spawn.

 

I tried to use : 

spwnveh setVariable ["Sarge",1,true];
call EPOCH_server_save_vehicle
call EPOCH_server_setVToken;

Still the same issue.

Dont think sarge does anything? is'nt that a pretty old variable. 

 

call EPOCH_server_save_vehicle

call EPOCH_server_setVToken;

 

Needs to be run serverside.

Link to comment
Share on other sites

so I have everything working great, the scroll wheel add action is all good. It takes the items out of inventory and spawns vehicle and its works fine but then the cleanup. I cant get around it. I am using the script client side. from init I call the addaction to add to player then from there it goes to the spawn vehicle script. so when the player does that its spawning the vehicle client side and it gets deleted. is there anyway to have the players addaction call a script and make the script run server side. so I can get around the cleanup. Since the script starts and runs client side idk how to make the players client side script go and call t server side script. Anyone have any ideas

Link to comment
Share on other sites

The add action works if you modify the script a little bit but the vehicle is cleanup by the server after the spawn.

I'm trying to workaround using the file  EPOCH_localCleanup.sqf to prevent the vehicle disappearing after spawn.

 

Someone told me that we can easily solve this issue if you break the DLL but it's against the Epoch mod licence so we have to find a workaround.

Link to comment
Share on other sites

The add action works if you modify the script a little bit but the vehicle is cleanup by the server after the spawn.

I'm trying to workaround using the file  EPOCH_localCleanup.sqf to prevent the vehicle disappearing after spawn.

 

Someone told me that we can easily solve this issue if you break the DLL but it's against the Epoch mod licence so we have to find a workaround.

Do you mind sharing the code ?

 

 

Lol guys work these Script now ?

 

 

i will post a working version if i can get addaction to work. even if i dont see the point of all players being able to spawn vehicles on your server like this =)

Link to comment
Share on other sites

Are you sure Amdathlon ?

There is an admin tool in you pbo file.

 

Whatever, I got the deploy bike using this :

 

 

Step 1

 

Make a Scripts folder in your mission folder.

 

 

Step 2

 

Download these 2 files :

 

fn_selfActions.sqf

Ebike.sqf

 

And put them in your Scripts folder.

 

 

Step 3

 

In your "init.sqf" file put this line at the bottom :

//fn_selfActions
[] execVM "Scripts\fn_selfActions.sqf";

Now the problem is that the Ebike is cleanup after spawn by the server.

So I tried to workaround with a custom EPOCH_localCleanup.sqf file.

 

I think it's this file which delete the vehicle after spawn.

Link to comment
Share on other sites

Are you sure Amdathlon ?

There is an admin tool in you pbo file.

 

Whatever, I got the deploy bike using this :

 

 

Step 1

 

Make a Scripts folder in your mission folder.

 

 

Step 2

 

Download these 2 files :

 

fn_selfActions.sqf

Ebike.sqf

 

And put them in your Scripts folder.

 

 

Step 3

 

In your "init.sqf" file put this line at the bottom :

//fn_selfActions
[] execVM "Scripts\fn_selfActions.sqf";

Now the problem is that the Ebike is cleanup after spawn by the server.

So I tried to workaround with a custom EPOCH_localCleanup.sqf file.

 

I think it's this file which delete the vehicle after spawn.

Thanks for your share Coco.

 

I will look into this later after work and maybe come up with some type of call server side and make a static location to spawn it in.

Maybe do 3 boxes for crafting your ebike, one at each spawn.

These locations are the only to spawn the bikes for now until we figure out how to keep the bikes in game.

Then have 3 different sqf's ie. ebikeE.sqf ebikeC.sqf and ebikeW.sqf

Each one of the sqf's will have a specific spot to spawn the ebike for the player.

 

Sorry just spitballing while at work......

Link to comment
Share on other sites

The classname ebike_epoch just needs to be added to the Safe_vehicles array in the vehiclesimulation.fsm and it can be triggered by players the same way the UAV and Parachutes are, without being picked up by the de simulate cleanup. All found in the server_monitor.fsm.

Now the trick is adding it to the said array. Without adding it to the server code directly, and breaking dll CRC checksum. ;) It's possible.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...