OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Suicide on 12 Feb 2004, 16:47:45

Title: Local & Server Scripts...
Post by: Suicide on 12 Feb 2004, 16:47:45
Hi All,
I Want To Use A Script Executed Only By The Server ( For Moving Markers For Example ) And Another One Executed Only By Players' Computer... ( For Individual Info That Other Can See... )
SomeOne Can Explain Me What Write In My Scripts Please ?
Title: Re:Local & Server Scripts...
Post by: myke13021 on 12 Feb 2004, 17:08:12
can only give you a partial answer..

create a gamelogic somewhere on your map, name it "server"

in the script that should only run on server, insert the following line on top:

?!local Server: exit

this exits the script if the machine it is runnin is not the server
Title: Re:Local & Server Scripts...
Post by: Suicide on 12 Feb 2004, 18:21:27
Thanks Mate
And For A Script Executed Only On A Computer, I Found This ( This On Top Of The Script ) :


_UnitName=Name UnitName
?_UnitName==Name Player:GoTo "Start"
Exit
#Start


I Think There Is Nothing To Explain, It's Very Simple ;D