Home   Help Search Login Register  

Author Topic: Lazy question about camera.sqs in MP  (Read 1466 times)

0 Members and 1 Guest 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.