Jump to content
  • 0

Position add


lucho

Question

5 answers to this question

Recommended Posts

  • 0
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

  • 0
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

  • 0

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

  • 0
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

  • 0
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...