I believe the problem is not that the gamelogics are not
local on clients - why?
Gamelogic is local at the host (yep that's true)
But that doesn't mean that the gamelogic cannot
do things on clientside.
e.g: AI soldiers are local at the server, but they do also
exist on clientside (or who would then be the enemy).
A script executed from a server-local-ai will also run on
clientside.
A script executed from the waypoints of a gamelogic will
also run everywhere (even if the gl is not local there).
In your case you're using the gamelogic's init fields to
createvehicle something. Now createvehicle should only
run on one machine. Usually ppl go for the server here,
as the server exists in every mp game for sure.
Createvehicle being executed on only one machine will still
create a vehicle on the other machines (not like camcreate).
Now imagine there are 10 players being connected on a
dedicated server (+ server makes 11 * createVehicle)
Now even on a non-dedicated server there would be
10 vehicles being created.
Ah yeah Zombie: just putting in a gamelogic, called server,
does nothing but nothing. You surely need to use this
gamelogic, called server in conditions to decide, wether
a command will be executed on the server or not.
in scripts:
?(local Server): blablabla
or in an ingame condition field:
local Server
or vice versa:
?!(local Server): blablabla
or
? not (local Server)
or ingame:
!local Server
or
not local Server
Placing buildings the hard way is really an ancient OFP cwc
technique (where there we had no createVehicle commands).
Anyway, to put in a couple of gamelogics, just for getting
locations may cause unnecessary performance requirements,
therefore you could do another thing:
place one gamelogic onto the map
name it Server
place another gamelogic on the map (not grouped to the
Server)
Now make waypoints for this gamelogic, to all locations, where
you wanna create a building.
Into the first waypoint's condition field type: local Server
(this will ensure to let the gamelogic continue only on server
side).
use each waypoints onActivation field to create a building
like: house1 = "Houseafdum_mesto2" createvehicle getpos this; house setdir getdir this
The only part to change is: setdir xxx
instead of getdir this, as when using waypoints, you aren't really in control of the gamelogic's direction (should be easy
0 - 360)
That should it be
~S~ CD