OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: laggy on 25 Feb 2009, 22:01:34

Title: Lazy question about camera.sqs in MP
Post by: laggy 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
Title: Re: Lazy question about camera.sqs in MP
Post by: Worldeater 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?

Title: Re: Lazy question about camera.sqs in MP
Post by: laggy 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: