OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Multiplayer => Topic started by: sardaukar17 on 02 Oct 2009, 01:50:46

Title: Dedicated Server Rearm,Repair, and Reload
Post by: sardaukar17 on 02 Oct 2009, 01:50:46
Has anyone run into this problem?

When my map is tested on Preview and when I host it on my computer I can use the Warfare Building "USMC Service Station" To rearm, Refuel, and Reload vehicles. When it is run on a dedicated server however, none of the Ammo crates, service stations, and any other buildings or ammo boxes supply vehicles any more.. Anyone know why that is and/or a way to fix it?

Right now I am back where I started on creating a new service station.. or (FARP)  ;)
Title: Re: Dedicated Server Rearm,Repair, and Reload
Post by: kju on 03 Oct 2009, 09:43:28
Locality bug in arma. Only works for local vehicles.
You have to make the unit/object local to be able to issue the command.
Title: Re: Dedicated Server Rearm,Repair, and Reload
Post by: sardaukar17 on 04 Oct 2009, 18:17:39
In order to make each of those supply objects local for each client would I have to run a creation script for each object that would then run on each client? or is there an easier way?

Title: Re: Dedicated Server Rearm,Repair, and Reload
Post by: tcp on 04 Oct 2009, 19:18:42
Create a marker where you want the service point called FARP1mrk
In init.sqf:
FARP1 = "USMC_WarfareBVehicleServicePoint" createVehicleLocal getMarkerPos "FARP1mrk";

It will locally create one on every client and the server.
Title: Re: Dedicated Server Rearm,Repair, and Reload
Post by: sardaukar17 on 05 Oct 2009, 04:52:01
That did end up working. Thank you!