• 1
Sign in to follow this  
Followers 0
Mezo

Trader Positions

Question

[0, -0.15, -0.45],180

I know the '180' is direction but what are the rest and how can I define a new position in the same format?

Thanks,

Mezo :)

1 person likes this

Share this post


Link to post
Share on other sites

1 answer to this question

  • 1

Format is as follows:

[X, Y, Z], Direction in degrees

Unlike in "normal" 3D space where the Y component is the elevation, Arma has a top-down view and uses the Z component for that. The Z component is not in world space, but in "above terrain level". Check this: 

https://community.bistudio.com/wiki/Position#PositionATL

The function "ExileClient_object_trader_create" can be used with or without an "attach to" object. If you want to have a trader sitting on a chair, you need to attach it to the chair. The position parameter then defines the position of the trader relative to the chair.

Example of trader just standing there, not attached to anything. Position is in world space:

[
    "Exile_Trader_Equipment",
    "WhiteHead_19",
    ["InBaseMoves_Lean1"],
    [14571.5, 16759.1, 0.126438], <<<<<< world space position of trader
    0
]
call ExileClient_object_trader_create;

Example of trader sitting on a chair. Position of chair is in world space, position of trader is relative to that chair:

_chair = "Land_CampingChair_V2_F" createVehicleLocal [0,0,0];
_chair setDir 208.182;    
_chair setPosATL [14568.1, 16764.3, 0.084837]; <<< world space

[
    "Exile_Trader_Armory",
    "PersianHead_A3_02",
    ["InBaseMoves_SittingRifle1"],
    [0, -0.15, -0.45], <<< relative to chair (model space)
    180,
    _chair <<< link to chair
]
call ExileClient_object_trader_create;

 

3 people like this

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.