Jump to content
SageNTitled

Spectator attributes not working (RscSpectator_allowFreeCam, RscSpectator_allowedGroups)

Recommended Posts

First off, I want to disable the freecam for spectators. I only want 3rd and 1st person to be enabled. I've tried using the following two scripts in my init.sqf, but none of them seem to work. I'm still able to free roam.

RscSpectator_allowFreeCam = false;
missionNamespace setVariable ["RscSpectator_allowFreeCam",false];

Here's what my description.ext says:

respawn = 3;
respawnDelay = 20;
respawnTemplates[] = {"Spectator", "Wave"};

Secondly, I'm unable to spectate the entire BLUFOR side. The wiki says that RscSpectator_allowedGroups is set to "all groups" by default, yet only my own squad is visible in the list.

 

How do I implement these correctly?

Share this post


Link to post
Share on other sites

Anybody knows how to make this work?  :mellow:

 

Without ur init.sqf its a kind of guessing instead of knowing about it.

 

First I think it should be done for all clients.

The "regular" Namespace ist the MissionNamespace so the following on each client should do the job:

RscSpectator_allowFreeCam = false;

Alternative as it is a global variable u could execute the following on the server or headless client (or any other client) only:

RscSpectator_allowFreeCam = false;
publicVariable "RscSpectator_allowFreeCam";

That will set the variable and broadcast it to every client.

 

 

The last alternative is to broadcast it while using setVariable with the public parameter (last parameter):

 

 

missionNamespace setVariable ["RscSpectator_allowFreeCam", false, true];
  • Like 1

Share this post


Link to post
Share on other sites

That makes sense, but I've tried all different possibilities now, and still can't get it working. I've tried looking in the official EndGame scenarios to see how they did it, but I couldn't find anything. I saw, however, that they are using missionNamespace in a similar manner for other variables, by putting it into initPlayerLocal.sqf.

 

Are you able to get it working? If so, can you provide an example scenario? I have no idea why this isn't working for me.

Share this post


Link to post
Share on other sites

I m sorry, but i ve never tried that.

 

You could try to find a solution with cameraEffect but i think u have to create a camera first.

 

Here is a tutorial for a bullet cam which u can use to understand how camera creation works.

 

http://killzonekid.com/arma-scripting-tutorials-a-simple-bullet-cam/

 

with cameraEffect you can force a fixed camera view for external cam.

 

Also u should post ur script to let us look for mistakes.

Share this post


Link to post
Share on other sites

What I wrote in the first post is basically it. I placed some units and added those three lines to my description.ext. Spectator mode works upon respawning, but whatever I do with the missionNamespace variables, I can't get them to work. It's not a spectator script I made on my own, but the default one. I'm starting to think it may be broken.

 

EDIT: For reference, this is the spectator mode I'm referring to.

Share this post


Link to post
Share on other sites

Also using the vanilla Spectator_Mode and can't disable FreeCam

 
//description.ext

respawn = "3";
respawnDelay = 9999999;
//initplayerlocal.sqf

player addeventhandler ["Killed", {[] call bis_fnc_respawnspectator}]; 
missionNamespace setVariable ["RscSpectator_allowFreeCam", false, true];

Share this post


Link to post
Share on other sites

The 1.6 update seems to have removed spectate on death!! Previously when dead with respawn off (which is set to off on a lot of dedicated servers) you could select players to watch, or roam free to see the mission progress & was interesting.

Now NOTHING you are stuck looking at the floor for Gods sake!!. I hope this is only temporary BIS?

Share this post


Link to post
Share on other sites

The 1.6 update seems to have removed spectate on death!! Previously when dead with respawn off (which is set to off on a lot of dedicated servers) you could select players to watch, or roam free to see the mission progress & was interesting.

Now NOTHING you are stuck looking at the floor for Gods sake!!. I hope this is only temporary BIS?

Same problem here, im been searching everywhere. I have a TDM server which is one life only.. anyway after you die your ment to be able to spectate the whole game from both team and now we just stare at the floor at our dead bodies

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

×