OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Viper4841 on 10 Apr 2003, 20:40:16
-
I have finished a very reliable respawn script for vehicles, and it works fine on a single player mission. However, there's one problem: when I use it in multiplayer, the CamCreate command I use to create a vehicle is run on the host machine, as well as on each client, so several vehicles appear right next to each other! This is a funny effect, but not what I'm looking for...
DOES ANYONE KNOW THE COMMAND THAT CHECKS TO SEE IF THE LOCAL MACHINE IS THE HOST???
If the local machine is a client, the respawn script will not be run, but it WILL be run only on the server, creating the desired effect.
Thanks!
-
Welcome to the forums, Viper4841
Please choose one board to post your question on thanks ;)
All replies to this topic to here (http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=8458;start=0).
# Topic Locked