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: Lazy question about camera.sqs in MP  (Read 2577 times)

0 Members and 2 Guests are viewing this topic.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Lazy question about camera.sqs in MP
« on: 25 Feb 2009, 22:01:34 »
Has anyone tried:

OnPlayerRespawnAsSeagull.sqs
Code: [Select]
[player] exec "camera.sqs"
exit

In a mission I would prefer this over another spectating script.
Has anyone tried this or is there a reason that it shouldn't work?

Laggy
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: Lazy question about camera.sqs in MP
« Reply #1 on: 25 Feb 2009, 22:41:23 »
...is there a reason that it shouldn't work?

Assuming you don't want an error message and a camera at [0,0,0]: Yes! :D

Don't use squared brackets. It's...
Code: [Select]
player exec "camera.sqs"
Apart from that: What do you do if the dead player hits "v" (so the script ends)? And how would you end the script youself?

try { return true; } finally { return false; }

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: Lazy question about camera.sqs in MP
« Reply #2 on: 25 Feb 2009, 22:51:10 »
 :D

What's wrong with error messages  :dunno:

To end the script with V sounds OK to me  :yes:

I'll try it and see how it works, concerned about the ending of the mission, when every player is dead  :scratch:
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.