Jump to content
dr death jm

How to make marker of sides buildings (like a way point) ?

Recommended Posts

Not map markers , but like jpg waypoint maker.

IE: west sides tankfactory would have a marker

Above it were west team can see like a waypoint?

Share this post


Link to post
Share on other sites

Thank you. I have read thru that before. Im looking for somthing add 3d to buildings local. the wiki doesnt explain much.

Share this post


Link to post
Share on other sites
Guest

Can you explain it better please. I'm not sure to understand

Share this post


Link to post
Share on other sites

Can you explain it better please. I'm not sure to understand

3d icons/markers on base buildings per side (east and west).

Hq would have a 3d marker (like waypoint marker) visible to the side. ( not a map marker) but a 3d ingame.( like player tags)....

Share this post


Link to post
Share on other sites

its kinda what I'm looking for, .. I want to add something like that to base buildings... so players in base don't need to click map to see were the buildings are .. all my building are allowed  500 meters from hq , so it would be so much simpler to see 3d markers ( in base) than too keep clicking map as you are looking for building.

Share this post


Link to post
Share on other sites

I found this today, but need icons on buildings

 

TAGS = addMissionEventHandler ["Draw3D", {
    {
        if (side _x == side player && {alive _x}) then {
            _dist = (player distance _x) / 15;
            _color = getArray (configFile/'CfgInGameUI'/'SideColors'/'colorFriendly');
            if (cursorTarget != _x) then {
                _color set [3, 1 - _dist]
            };
            drawIcon3D [
                '',
                _color,
                [
                    visiblePosition _x select 0,
                    visiblePosition _x select 1,
                    (visiblePosition _x select 2) +
                    ((_x modelToWorld (
                        _x selectionPosition 'head'
                    )) select 2) + 0.4 + _dist / 1.5
                ],
                0,
                0,
                0,
                name _x,
                2,
                0.03,
                'PuristaMedium'
            ];
        };
    } count allUnits - [player];
}];

 

Share this post


Link to post
Share on other sites
Guest

You need to specify the texture in the first argument.

drawIcon3D [texture, color, pos, width, height, angle, text, shadow, textSize, font, textAlign, drawSideArrows]

TAGS = addMissionEventHandler ["Draw3D", {
    {
        if (side _x == side player && {alive _x}) then {
            _dist = (player distance _x) / 15;
            _color = getArray (configFile/'CfgInGameUI'/'SideColors'/'colorFriendly');
            if (cursorTarget != _x) then {
                _color set [3, 1 - _dist]
            };
            drawIcon3D [
                "/A3/Blabla",
                _color,
                [
                    visiblePosition _x select 0,
                    visiblePosition _x select 1,
                    (visiblePosition _x select 2) +
                    ((_x modelToWorld (
                        _x selectionPosition 'head'
                    )) select 2) + 0.4 + _dist / 1.5
                ],
                0,
                0,
                0,
                name _x,
                2,
                0.03,
                'PuristaMedium'
            ];
        };
    } count allUnits - [player];
}];
 

Share this post


Link to post
Share on other sites

thanks, but this is to players,

ill maybe use it for players but really looking to add 3d icons to buildings..

awesome info , I didn't see it was missing "/A3/Blabla",

good catch...

Share this post


Link to post
Share on other sites

Multiple examples here. Rotating icons, spinning icons, a function to look after multiple object icons. May be of help.

Share this post


Link to post
Share on other sites

Multiple examples here. Rotating icons, spinning icons, a function to look after multiple object icons. May be of help.

thanks larrow....

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×