T-Max 10 Posted July 2, 2013 (edited) I try to do base doors. Issue with open. I write next script: _allowedPlayers - array with uids, open and close scripts just set variable "doorLocked" to 0 and 1 *** When i try to open that door - it immediately closes, but script "wait" at second cycle. Why?! whats wrong?! Edited July 3, 2013 by T-Max Share this post Link to post Share on other sites
f2k sel 145 Posted July 2, 2013 I ran a little test in A3 adding a hint in where the anims are as I don't have those doors and it was working fine. I suspect setvariable isn't being set correctly in "Scripts\Gate\baseDoorOpenDoor.sqf" "Scripts\Gate\baseDoorCloseDoor.sqf" Share this post Link to post Share on other sites
T-Max 10 Posted July 3, 2013 Yes, with hints we can see script works fine, but its looks like something blocks doors and they cant open. I dont know why. Scripts\Gate\baseDoorOpenDoor.sqf: _door = _this select 0; _door setVariable["doorLocked",0,true]; Scripts\Gate\baseDoorCloseDoor.sqf: _door = _this select 0; _door setVariable["doorLocked",1,true]; Share this post Link to post Share on other sites
f2k sel 145 Posted July 3, 2013 Works fine in SP open/close unless player not in array then you get text message. I suspect it's a locality issue, addaction is local. I'm having the same issues a script works perfect in sp and goes crazy in MP [nil, _door, "per", rADDACTION, ""Open"", "Scripts\Gate\baseDoorOpenDoor.sqf", [], 1, true, true, "", ""] call RE; [nil, _door, "per", rADDACTION, ""Open"", "Scripts\Gate\baseDoorCloseDoor.sqf", [], 1, true, true, "", ""] call RE; http://community.bistudio.com/wiki/Multiplayer_framework Share this post Link to post Share on other sites
T-Max 10 Posted July 3, 2013 (edited) Don't know why it going crazy - cycle breaks when var changes ___________________ I edited script but dont know...Maybe avoiding a lot of cycles helps. Unfortunately, i can't test that in MP. Are there "else if" statement? Edited July 3, 2013 by T-Max Share this post Link to post Share on other sites