zooloo75 834 Posted March 16, 2013 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
Radioman 6 Posted March 16, 2013 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
tryteyker 28 Posted March 16, 2013 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
zooloo75 834 Posted March 16, 2013 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
tryteyker 28 Posted March 16, 2013 How do you execute the code in general? init.sqf? Share this post Link to post Share on other sites
zooloo75 834 Posted March 16, 2013 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
buliwyf 4 Posted March 16, 2013 There is no dedidated software avaible atm... or did i miss something? Share this post Link to post Share on other sites
zooloo75 834 Posted March 17, 2013 Ah, nvm, it was a problem with my mission. False alarm :P Share this post Link to post Share on other sites
sxp2high 23 Posted March 17, 2013 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
.kju 3245 Posted March 17, 2013 use squint from now on, if you havent already Share this post Link to post Share on other sites