Home   Help Search Login Register  

Author Topic: Question on the "local" command  (Read 500 times)

0 Members and 1 Guest are viewing this topic.

PRiME

  • Guest
Question on the "local" command
« on: 23 Dec 2002, 11:12:10 »
Basicly I want only a certain section of my script to run on server etc, like the create vehicle parts etc.. Then after that I want the player to move to the vehicle but this can not happen unless I somehow tell it to run that part of the script on the player(s) machine.

---snip from my script--

#EASTP
?!(local Server): Goto "NextE"
_vcl = "BISCamel2" createVehicle getpos _padid
_vcl setdir (getDir _padid)
_vcl setpos [getPos _padid select 0, getPos _padid select 1, (getPos _padid select 2) + 500]

#NextE
?!(local Player): Goto "Exit2"
_unitid MoveinDriver _vcl
_vcl action ["Engine on"]
goto "Exit2"
-----------------

Basicly it creates a Camel Plane somewere and sets it all up etc, then afterwards it needs to place the player in it, this does not happen, and as you can see I tried local player.

Any help would be welcome.

Rodd

  • Guest
Re:Question on the "local" command
« Reply #1 on: 26 Dec 2002, 06:59:58 »
Maybe it is just getting too late at night (and I should be sleeping), but how do the non-Server clients know about the _vcl assignment (maybe you have it somewhere else in the script)?

PRiME

  • Guest
Re:Question on the "local" command
« Reply #2 on: 26 Dec 2002, 07:16:52 »
Thankyou for replying, tho I decided to use BIS method for camel respawning etc etc. It works very well tho I gotta add some code in so AI can also fly around etc.