T-Max
-
Content Count
6 -
Joined
-
Last visited
-
Medals
Posts posted by T-Max
-
-
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];
-
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?!
-
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
_GatePlayers_nameOfGates = ["1","2","3","4","5","6"];where nameOfGates - is the name of doors or gates in mission.sqm
class Item73{
position[]={2568.4424, 1.5258789e-005, 12018.484};
azimut=-118.4526;
id=221;
side="EMPTY";
vehicle="Land_Gate_IndVar2_5";
skill=1;
text="TMax_Gate";
};
Next code - for all doors in the level, but error in that line: if (getPlayerUID _player in _allowedPlayers) then
_allowedPlayers = "_GatePlayers_"+name _door; //_GatePlayers_TMax_Gate - example#include "uids.sqf"
while { true } do {
...
if (getPlayerUID _player in _allowedPlayers) then
Error type string, expected array.
How can I convert string into array for that script?
-
XxAnimusxX, thanks a lot. lineIntersects is what i need. ^.^
-
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
animate function issue
in ARMA 2 & OA : MISSIONS - Editing & Scripting
Posted · Edited by T-Max
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?