Trillseeker82

Add custom billboards server side

47 posts in this topic

Is there a particular size for these images?

Share this post


Link to post
Share on other sites
44 minutes ago, oz1982 said:

Is there a particular size for these images?

2:1 ratio. 1024x512, 512x256..

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

Posted (edited)

Hi i found your script here yesterday, but i have a little problem

I want to have a billboard at XXX m over ground

like this

 btw location is at military zone about the terminal on a placed solar tower via Extendet base mod

 

_pos = [12792.5,16698.4,123.7236];
_object = createVehicle ["Land_Billboard_F", _pos, [], 0, "CAN_COLLIDE"];
_object setDir 216;
_object setPosATL _pos;
_object setObjectTextureGlobal [0, "img\test.paa"];
_object allowDamage false;

 

the problem is if I use "Land_Billboard_F" so i see nothing, but if i use "SignAd_Sponsor_F" the picture is on the right place

im a little bit confused whats wrong :/

the resolution of picture is 256x256

 

the Z koordinate is this only " meters over map" or "meters over ocean" ?

 

do you have any ideas whats wrong?

 

Edited by Powerstriker46

Share this post


Link to post
Share on other sites

There are two things I want to say:

For Billboards the particular size is in scale 2:1... e.g. 512x256

Your billboard should be there, (maybe with some bad texture cause 256x256) did you looked at the height you set (123.7 m)

Share this post


Link to post
Share on other sites

Whats this for?>

call compile preprocessFileLineNumbers "\x\addons\custom\mapcontent\mapaddons.sqf";

 

Doesn't seem to be a file for that in the PBO

 

Also, this isnt working for me and I cant work out why, no RPT errors either!

Share this post


Link to post
Share on other sites

I placed a custom board "SignAd_Sponsor_F" and place custom image rules.paa in my files mpmissions. This custom board is ok in multiplayer game, my image custom rules.paa no is visible, an any soluction for this

content in the initserver.sqf

["SignAd_Sponsor_F", [3823.85, 8940.23, 312.031], [0.379797, 0.92507, 0], [0, 0, 1], true, [0, "Custom\img\regras.paa"]],
["SignAd_Sponsor_F", [12202.5, 12594.6, 160.041], [0.386751, 0.922184, 0], [0, 0, 1], true, [0, "Custom\img\regras.paa"]],
["SignAd_Sponsor_F", [11464.5, 7494.48, 222.515], [-0.303355, -0.952878, 0], [0, 0, 1], true, [0, "Custom\img\regras.paa"]]

mybilb.jpg

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.