Jump to content
Sign in to follow this  
zooloo75

isDedicated broken?

Recommended Posts

I am working on my Hostage Rescue mission and isServer works when the player is hosting it, but if it is ran on a dedicated server, it fails to do anything.

if(isServer || isDedicated) then

{server sided stuff};

Share this post


Link to post
Share on other sites

it'd have to be with something else in the code. What structure does your code follow? IE, is it called from the init.sqf, or is it from a trigger in the world? etc.

Share this post


Link to post
Share on other sites

There is little to no reason to ever use isDedicated. isServer accounts for SP Missions, listed servers AND dedicated servers so it can be used.

Share this post


Link to post
Share on other sites
There is little to no reason to ever use isDedicated. isServer accounts for SP Missions, listed servers AND dedicated servers so it can be used.

Yea, that's what I thought and knew, but when hosting my mission on a dedicated server, it doesn't run the code set for it, but if I host it ingame, it works just fine.

Share this post


Link to post
Share on other sites

How do you execute the code in general? init.sqf?

Share this post


Link to post
Share on other sites

if(isServer || isDedicated) then 
{
onEachFrame {camEntrance setdir ((direction camEntrance) + 1)};
copSide = []; publicvariable "copSide";
terSide = []; publicvariable "terSide";
civSide = []; publicvariable "civSide";
execvm "reinitserver.sqf";
execVM "extractSmoke.sqf";


};

Which is located in the init.sqf

You can unpbo my mission and see for yourself. It will only run the isServer code if it is hosted ingame.

http://forums.bistudio.com/showthread.php?149766-Hostage-Rescue-Extreme-Edition

Share this post


Link to post
Share on other sites

There is no dedidated software avaible atm... or did i miss something?

Share this post


Link to post
Share on other sites

Ah, nvm, it was a problem with my mission. False alarm :P

Share this post


Link to post
Share on other sites
There is no dedidated software avaible atm... or did i miss something?

If you run the arma3.exe wih the -server parameter, it will return isDedicated as true in the game :)

Share this post


Link to post
Share on other sites

use squint from now on, if you havent already

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  

×