Jump to content
  • 0

Item Placing


NellyST24

Question

hi, i have put a custom poster at my arena. I have put in by adding this to my mission.sqm

Spoiler

    class Vehicles
    {
        items=1;
        class Item0
        {
            position[]={11679.223,1.6395884,3164.3418};
            azimut=-204.683;
            offsetY=24.799999;
            id=1;
            side="EMPTY";
            vehicle="UserTexture10m_F";
            skill=0.60000002;
            init="this setObjectTexture [0, ""addons\RMC_Arena.jpg""]";
        };
    };

It loads in fine and the texture shows. The only problem i'm having is that the "UserTexture10m_F" does not sit vertical, it leans backwards. Im wondering how i can get it to it straight instead of leaning.

As in the pic, i'm trying to get it to sit flush with the concrete block i have put in, but it sits at that angle.

Any help is appreciated, i'm still new to editing/running a server so probably something simple that i've missed

 

2016-01-20_00001.jpg

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

try adding to the init line:

this setDir -204.683; this setPosATL [11679.223,1.6395884,3164.3418];

So it looks like this:

init="this setObjectTexture [0, ""addons\RMC_Arena.jpg""]"; this setDir -204.683; this setPosATL [11679.223,1.6395884,3164.3418];


OR simply spawn the object server side:

_veh = createVehicle ["UserTexture10m_F", [11679.223,1.6395884,3164.3418], [], 0, "CAN_COLLIDE"];
_veh setDir -204.683; 
_veh setPosATL [11679.223,1.6395884,3164.3418];
_veh setObjectTextureGlobal [0, "addons\RMC_Arena.jpg"];


 

Link to comment
Share on other sites

  • 0
_veh = createVehicle ["UserTexture10m_F", [11679.223,1.6395884,3164.3418], [], 0, "CAN_COLLIDE"];
_veh setDir -204.683; 
_veh setPosATL [11679.223,1.6395884,3164.3418];
_veh setObjectTextureGlobal [0, "addons\RMC_Arena.jpg"];

Don't know why the server crash, but here is one bug.

Right is: [11679.223,3164.3418,1.6395884];

It's because, the coords in scripts are [x,y,z] and in misson.sqm are [x,z,y]

 

To spawn Serverside, add in init.sqf:

if (isserver) then {
	_veh = createVehicle ["UserTexture10m_F", [11679.223,3164.3418,1.6395884], [], 0, "CAN_COLLIDE"];
	_veh setDir -204.683; 
	_veh setPosATL [11679.223,3164.3418,1.6395884];
	_veh setObjectTextureGlobal [0, "addons\RMC_Arena.jpg"];
};

 

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...