Jump to content
Sign in to follow this  
alleycat

spectator slots?

Recommended Posts

Is it possible to setup a dedicated spectator slot? Does arma3 support that or would one have to do it messy by having the slot force spectator mode after the game starts?

Share this post


Link to post
Share on other sites

I'm looking for the same thing.

According to the Wiki:

It is also available on pre-defined playable slots for users who wish to observe a mission or even stream its progress.

I just don't know how to create or add these playable slots.

Edited by Ficc

Share this post


Link to post
Share on other sites

Everything I've tried has failed in this regard and the documentation is weak regarding spectators.

Share this post


Link to post
Share on other sites

I assume you just have a slot that will kill/delete the unit and force spect at the start?

Share this post


Link to post
Share on other sites
That's so inelegant that I never considered doing it :)

Yes it is, but that's what Arma scripting is all about. Making simple things the hard way. :)

Share this post


Link to post
Share on other sites

you could hide the unit in one Slot and then switch to a free Floating Cam with a script.

Share this post


Link to post
Share on other sites
I assume you just have a slot that will kill/delete the unit and force spect at the start?

That's what i was thinking about. And how do we do that?

Share this post


Link to post
Share on other sites

I was looking into this matter for some time and I think I have the solution now. It may not work with every mission, but on the simpler ones it works. I am no great expert in scripting, but at least the spectating works on my missions. If anyone has a better solution or more clean way of doing this, I'd love to see it.

Step 1 - create a playable civilian unit (or more if you want more spectators)

Step 2 - Set the respawn in description.ext in a following way:

respawn = 3;

respawnDelay = 6;

respawnTemplates[] = {"Base","Spectator"}; //set the templates for all units in the game

respawnOnStart = 0;

respawnTemplatesWest[] = {"Base"}; // both west and east soldiers (real players) will spawn normally on base markers
respawnTemplatesEast[] = {"Base"}; //both west and east soldiers (real players) will spawn normally on base markers
respawnTemplatesCiv[] = {"Spectator"}; // civilians (spectators) will automatically switch to spectator mode

Step 3 - At the start of the mission, respawn times are set accordingly to description.ext. Find a script that launches just after the mission start (any script) and add this line:

if ((side player) == civilian) then {setplayerrespawntime 9999999};

It will set the respawn time to a high value so that spectators can stay dead and spectate others. Others will still respawn normally on markers after 6 seconds.

So yes, spectator mode is actually a type of respawn.

I want to commentate multiplayer matches and tournaments and for that the spectator mode is a necessity. This works fine, if anyone has another solution, post it please. Hope this helps!

Share this post


Link to post
Share on other sites

What about having a civilian slot where the unit spawns in a limited area and you just let them use the Splendid Camera?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×