Home   Help Search Login Register  

Author Topic: Local & Server Scripts...  (Read 1113 times)

0 Members and 3 Guests are viewing this topic.

Suicide

  • Guest
Local & Server Scripts...
« 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 ?

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Local & Server Scripts...
« Reply #1 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

Suicide

  • Guest
Re:Local & Server Scripts...
« Reply #2 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
« Last Edit: 12 Feb 2004, 18:22:47 by Suicide »