Jump to content
Sign in to follow this  
Lala14

How to attach a picture onto the side of a vehicle just like the squad image

Recommended Posts

So as title says I was wondering on attaching an image to a vehicle but making it attach like the squad images.

So far I've been adding it manually and now that I have come to the xH-9 the image is hovering off and not automatically forming to the sides.

Ill post a picture soon of what I'm talking about for those not understanding of my current issue.

Share this post


Link to post
Share on other sites

///squadimage///

private ["_vehicle","_dir","_tex"];

_vehicle =_this select 0;

_tex = "UserTexture1m_F" createvehicle getpos _vehicle;

_tex setobjectTexture [0,"\yourfolder\yourimage.paa"];\\the image can be .paa or .jpg

//but it must be 256x256 or 512x512 or multiple.....

_dir = getdir _car;///you must add or subtract to align it to the vehicle ex:

///_dir = getdir _car + (90);

_tex setdir _dir;

_tex Attachto [_vehicle, [direction,distance,height]];

///assign the values to the variables: direction,distance,height

//to attach the image where you want

//direction = right or left values

//in editor usage, vehicle with image into his init line put:

///nul = [this] execVM "squadimage.sqf";

Edited by maxjoiner
  • Thanks 1

Share this post


Link to post
Share on other sites

thanks for the help max but still this won't be able to bend the image onto the vehicle (MH-9)

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  

×