OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: SYCO187 on 29 Apr 2003, 07:29:16

Title: server command?
Post by: SYCO187 on 29 Apr 2003, 07:29:16
hello i recently made a map that spawns enemy randomly around a player it spawns troops tanks and helos.....now the tanks only when my buddy connects...the script makes like 2X as much...now the 1/2 is manned the other is not....why are the tanks spawning double time. it won't do it if i play multi solo...isn't there a server command..?....maybe that would help? :-\
Title: Re:server command?
Post by: Terox on 29 Apr 2003, 22:44:25
it would appear by the example of the faults you are giving, that the respawn/spawn of your vehicles is done on the client machine

You need to "Server side Script" any vehicle respawn

to do this create a gamelogic named  "server"

and then for the vehicle creation line in your script, simply precede it with the following line
?(local server):

or if the script is to be only run on the server then have the following line at the start of the script

 ?!(local Server): exit
Title: Re:server command?
Post by: SYCO187 on 30 Apr 2003, 01:08:42
cool thx pal