Home   Help Search Login Register  

Author Topic: deleteVehicle  (Read 1256 times)

0 Members and 3 Guests are viewing this topic.

Offline Baddo

  • Former Staff
  • ****
  • Reservist Jaeger
deleteVehicle
« on: 22 Jan 2005, 21:44:48 »
Hi

If I run a deleteVehicle command on a single client, will that command execute on all other clients too? In other words will the server notice that I used the command on a client and then synchronize the event with other clients too?

I know that this command could be used only in the server and it would run on all clients too. But my situation needs the command to be run only in one client at a time and so that it doesn't do anything on other clients.

Thanks in advance for replying.

 :)

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:deleteVehicle
« Reply #1 on: 23 Jan 2005, 13:08:40 »
Quote
If I run a deleteVehicle command on a single client, will that command execute on all other clients too? In other words will the server notice that I used the command on a client and then synchronize the event with other clients too?

The first question is,Multiplayer dedi server or Multipayer non-dedi?(Hosting ur own game).

Dedicated server:Answer is NO
Assuming U use :
Code: [Select]
?(local player):[]exec"....sqs",your script will only run local,if U want the effects global U need to use PublicVariables.

Non-Dedi:Answer is NO,1 exception
There is a situation where Local player == server (the host)
Here  U have to use:
Code: [Select]
?!(local server):[]exec "...sqs",but this means
it will run on all clients,so u need an extra condition with the player command

So,dedi server:No problem,run it local
(What U want is what others dont like in MP  ;))

Non-dedi:run it NOT on the server and add an extra condition (like "vehicle player in thislist" if u work with triggers)
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

Offline Baddo

  • Former Staff
  • ****
  • Reservist Jaeger
Re:deleteVehicle
« Reply #2 on: 23 Jan 2005, 14:28:53 »
Thank you for the information.

 :)

I will check the scripts so that they will take notice of your advices.

This mission is supposed to work similarly in both cases, dedi or non-dedi server. So I have to think a bit to make sure it really works correctly.

 :P