Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: When do scripts only run on client.  (Read 1700 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.