Jump to content
  • 0
Sign in to follow this  
lucho

Position add

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

 

 

 

Share this post


Link to post
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

 

 

Share this post


Link to post
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;
    };

Share this post


Link to post
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];


 

 

Share this post


Link to post
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

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...