Home   Help Search Login Register  

Author Topic: When do scripts only run on client.  (Read 899 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
When do scripts only run on client.
« on: 21 Dec 2004, 15:35:25 »
Under what circumstances does a script only run on a client?  I am trying to think of situations where this might occur.  If I: car AddAction["Fart","fart.sqs"] and a player actions Fart, will fart.sqs be run on all clients?
« Last Edit: 21 Dec 2004, 15:35:49 by Mr.Peanut »
urp!

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:When do scripts only run on client.
« Reply #1 on: 21 Dec 2004, 15:56:07 »
Scripts will run on all clients if they're launched from global space. There are exceptions like some eventhandlers and infact action is one of them.
An when a script is executed with an action, the script will run on only that clients computer who used the action.

If player actions Fart, fart.sqs will not be run on all clients.
Not all is lost.