Jump to content
Sign in to follow this  
Fr3eMan

Draw Vehicle Display Name

Recommended Posts

I'm trying to spawn a vehicle and when the player move nearest by trigger draw the vehicle displayed dame over it, I'm using the follow code but when spawn the icon over it appear like "unknown", I miss something....

_draw = addMissionEventHandler ["Draw3D",{
        
        drawIcon3D ["", [1,0.05,0.05,1], [getpos obj1 select 0, getpos obj1 select 1,4], 0, 0, 0, gettext (configFile >> "CfgVehicles" >> "AllVehicles" >> "displayName"), 0,0.09];

    }
];

Share this post


Link to post
Share on other sites
typeOf obj1
getText (configFile >> "CfgVehicles" >> typeOf obj1 >> "displayName")

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Work fine, thanks!

 

2 hours ago, HazJ said:

typeOf obj1

getText (configFile >> "CfgVehicles" >> typeOf obj1 >> "displayName")

 

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
Sign in to follow this  

×