Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×

T-Max

Member
  • Content Count

    6
  • Joined

  • Last visited

  • Medals

Everything posted by T-Max

  1. 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?
  2. 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?!
  3. 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];
  4. I continue that thread if nobody against :) I try to realize 1 script for several arrays contains different uids. Arrays in file uids.sqf and looks like where nameOfGates - is the name of doors or gates in mission.sqm Next code - for all doors in the level, but error in that line: if (getPlayerUID _player in _allowedPlayers) then Error type string, expected array. How can I convert string into array for that script?
  5. XxAnimusxX, thanks a lot. lineIntersects is what i need. ^.^
  6. Hi everybody! =DayZ= I create script which shows nickname of all player near me at 10 metres. That script works for all players and I encountered a problem. Script also shows nicknames through walls - like wallhack. I need a function which can trace position from first player's position to second player's position and return true when trace has been successful( without hit any wall ) and return false otherwise. Thanks! T-Max
×