lucho Posted July 14, 2016 Report Share Posted July 14, 2016 How i can add position check if you near position [4412.34,9875.33,0.00146484] <200 than can trade can any body help me? Link to comment Share on other sites More sharing options...
0 juandayz Posted July 14, 2016 Report Share Posted July 14, 2016 11 minutes ago, lucho said: How i can add position check if you near position [4412.34,9875.33,0.00146484] <200 than can trade can any body help me? _playerPos = getPosATL player; //position of player_neartrader = count nearestObjects [_playerPos, ["Soldier_TL_PMC_DZ"], 200] > 0; example _variable name = count nearestObjects [_playerPos, ["OBJET OR UNIT ID"], DISTANCE IN NUMBERS] > 0; so... private ["_ playerPos","_neartrader"]; _playerPos = getPosATL player; _neartrader = count nearestObjects [_playerPos, ["TK_CIV_Woman01_EP1"], 200] > 0; if (_neartrader) then { your code }; //end of whole script Link to comment Share on other sites More sharing options...
0 lucho Posted July 14, 2016 Author Report Share Posted July 14, 2016 1 minute ago, juandayz said: _playerPos = getPosATL player; //position of player_neartrader = count nearestObjects [_playerPos, ["Soldier_TL_PMC_DZ"], 200] > 0; example _variable name = count nearestObjects [_playerPos, ["OBJET OR UNIT ID"], DISTANCE IN NUMBERS] > 0; so... private ["_ playerPos","_neartrader"]; _playerPos = getPosATL player; _neartrader = count nearestObjects [_playerPos, ["TK_CIV_Woman01_EP1"], 200] > 0; if (_neartrader) then { your code }; //end of whole script thanks Link to comment Share on other sites More sharing options...
0 juandayz Posted July 14, 2016 Report Share Posted July 14, 2016 what do you need to do with this? cuz, u can use too from fn_selfaction... and call your script see: private["_playerPos","_neartrader"]; _playerPos = getPosATL player; _neartrader = count nearestObjects [_playerPos, ["TK_CIV_Woman01_EP1"], 4] > 0; if (_neartrader) then { if (s_player_script1 < 0) then { s_player_script1 = player addaction[("<t color=""#F7D708"">" + ("MY ACTION NAME") +"</t>"),"custom\myscript.sqf"]; }; } else { player removeAction s_player_script1; s_player_script1 = -1; }; Link to comment Share on other sites More sharing options...
0 lucho Posted July 15, 2016 Author Report Share Posted July 15, 2016 18 hours ago, juandayz said: what do you need to do with this? cuz, u can use too from fn_selfaction... and call your script see: private["_playerPos","_neartrader"]; _playerPos = getPosATL player; _neartrader = count nearestObjects [_playerPos, ["TK_CIV_Woman01_EP1"], 4] > 0; if (_neartrader) then { if (s_player_script1 < 0) then { s_player_script1 = player addaction[("<t color=""#F7D708"">" + ("MY ACTION NAME") +"</t>"),"custom\myscript.sqf"]; }; } else { player removeAction s_player_script1; s_player_script1 = -1; }; i have quest. to Teleport i have infistart but i dont wanna to off teleport defense like this to false /* Use Anti Teleport? */ _UAT = true; /* true or false */ /* recommended: true */ How i can add my tp to filter like allowtp here is my teleport file titleText ["Bunker;)", "PLAIN DOWN", 3]; titleFadeOut 4; player setPos [1168.58,2465.37,0.00143099]; Link to comment Share on other sites More sharing options...
0 juandayz Posted July 15, 2016 Report Share Posted July 15, 2016 1 hour ago, lucho said: i have quest. to Teleport i have infistart but i dont wanna to off teleport defense like this to false /* Use Anti Teleport? */ _UAT = true; /* true or false */ /* recommended: true */ How i can add my tp to filter like allowtp here is my teleport file titleText ["Bunker;)", "PLAIN DOWN", 3]; titleFadeOut 4; player setPos [1168.58,2465.37,0.00143099]; dont have idea, i never use infistar..sory Link to comment Share on other sites More sharing options...
Question
lucho
How i can add position check
if you near position [4412.34,9875.33,0.00146484] <200 than can trade
can any body help me?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now