T-Max
Member-
Content Count
6 -
Joined
-
Last visited
-
Medals
Everything posted by T-Max
-
animate function issue
T-Max replied to T-Max's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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? -
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?!
-
animate function issue
T-Max replied to T-Max's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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]; -
locking/unlocking buildings
T-Max replied to gutiarhero814's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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? -
Trace position between two players
T-Max replied to T-Max's topic in ARMA 2 & OA : ADDONS - Configs & Scripting
XxAnimusxX, thanks a lot. lineIntersects is what i need. ^.^ -
Trace position between two players
T-Max posted a topic in ARMA 2 & OA : ADDONS - Configs & Scripting
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