OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: AnarCHy on 31 Aug 2004, 00:15:55
-
Hello people.
Just a quick question..
I am getting into MP editing and I want to know if you can exec camera.sqs when one person dies, so only the dead guy(s) have it? Kind of like spectating.
AnarCHy 8)
-
What about :
this addeventhandler ["Dead",{this exec "camera.sqs")]
I see no reason why it wouldn't work..
- Ben
-
Snypir's MP Editing rule 7: EHs are little compatible with multiplayer games
http://www.ofpec.com/editors/resource_view.php?id=543
Though, I haven't used eventhandlers in MP. Just because Snyp's MP eidting rule. :) I can't say for sure, but many have said that they don't work. Please correct me if I'm wrong, though. :)
-
???
I'm almost sure they do work...map clicks too (if you are refering to OnMapSingleClick-dunno if there's anything else)...
I use fired EH on tanks all the time...for the enhanced shock dust.
I use fired EH on infantry to give them less accurate ammo.
Oh just remembered...
I run event handlers from init lines and they're checked at the start of the game...no hassle with declaring public variables...
...but there's bound to be someone here which can explain/clarify better than me
-
eh's work fine in MP, use them for all sorts of things....
don't use "camera.sqs" as the name of a custom movie tho.....movie.sqs is one of those embedded scripts that you cannot see but will cause strange things to happen when called...but it is great to use for making cutscenes, there is a tute on how to do it in the ed depot....
-
He wants the camera.sqs file so people can fly around the map while the play continues
Would be cool if it works ;D
Wonder if it is MP compatible...
- Ben
-
wouldn't seagull respawn be so much less work?
-
Prob ::)
But camera.sqs is zoomable/trackable (Can lock the camera to other units etc)
I might try it on a squads mission one day
- Ben
-
Look at how BAS did theirs in the MP missions where you can follow people around.
I think most of it is in the description.ext file.
-
the EH didnt work, whenever one person died everyone got camera.sqs
i need to make it excluded to those who are dead, and because I shot an officer they shot me, and it still made me "respawn" as a bird.
??
AnarCHy