Jump to content
Sign in to follow this  
Sardaukar17

Dedicated Server Rearm,Repair,Refuel

Recommended Posts

Has anyone else run into this issue?

When I host my map or test it in preview mode I can rearm, Refuel, and Repair my vehicles at the Warfarebuilding "USMC Service station". However, when I test the map out on a dedicated server NONE of the ammo crates or buildings that normally allow this seem to work anymore for vehicles.

I can still get gear for myself but when I pull my vehicle up to the service station I get nothing when in any other case, but dedicated server, I can rearm and repair there.

Why would that ability be reserved for just PC hosting and Preview mode? Is there a Server setting I am not aware of that turns this option off?

Share this post


Link to post
Share on other sites

I've run into this before..

I think it has to do with locality. Either the items needed to repair/rearm are local, and they need to be on the server, or they are on the server, and need to be local to each players machine..

The latter is likely true here. Since it works in sp mode. (or hosted locally)

Items like that could either be placed via script local to everyone. (createVehicleLocal) or by just placing a marker/trigger to run a script that actually repairs/rearms/refuels.

Edited by Big_Daddy

Share this post


Link to post
Share on other sites

I should have thought of that.. Do you think the vehicles themselves could be made public with

Publicvariable "_Vehiclename"

?

I'll have to test it out on my next day off. Thank you

Share this post


Link to post
Share on other sites

I remember seeing this on the BIS mission "War Welcome" on Utes. Player multiplayer. We were acting as a LAV crew, but any time we wanted to rearm/repair the client players had to get out and I, as the host, had to drive the LAV to the supply trucks alone.

So... I'm thinking it is more of a bug than an oversight on your part. ;)

Share this post


Link to post
Share on other sites
I should have thought of that.. Do you think the vehicles themselves could be made public with

Publicvariable "_Vehiclename"

?

I'll have to test it out on my next day off. Thank you

I think a server-client repair/fuel script is rather pointless... Even if you want a limited amount of repair (only allow it when the server allows it) you probably want the main bulk running on the client and only have the server update the status of depot. So publicvariabling the vehicle name doesnt make sense.

A trigger with a repair/refuel script is probably the simplest to use if the depot is stationary, I remeber writing one a while ago at like 30 lines of code.

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  

×