OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Multiplayer => Topic started 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) ;)
-
Locality bug in arma. Only works for local vehicles.
You have to make the unit/object local to be able to issue the command.
-
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?
-
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.
-
That did end up working. Thank you!