Is there any way of changing an objects pitch angle in the editor? to tilt an object say to 45 deg tilt.
Is there any way of changing an objects pitch angle in the editor? to tilt an object say to 45 deg tilt.
I don't know about editor way, but:
You can put a functions module on the map and write this to the init line:
[this, 45,0] call BIS_fnc_setPitchBank;
ah rgr i see put it in the objects init
Yes, but it doesn't work as is....
I could come up with this, but it is ugly as hell: (I hope someone can tell you how you can do this nicely)
Put the above line into objects init line.PHP Code:null = this spawn {waituntil {!isnil "bis_fnc_init"}; [_this, 45,0] call BIS_fnc_setPitchBank;};
Alternatively you can name your object to something (like aaa), and write the following lines to init.sqf in missions folder:
PHP Code:waituntil {!isnil "bis_fnc_init"};
[aaa, 45,0] call BIS_fnc_setPitchBank;
Last edited by zapat; Dec 5 2011 at 14:39.
Allright then. If it stops working, you need to wait until functions init is done before you can use it. I only had one object on the map, maybe this is why the functions module didn't have time to initialize...
For setting height above Sea Level:
PHP Code:this setPosASL [ getPosASL this select 0, getPosASL this select 1, 100];
Rgr thank you for your help and I'd better explain what I'm doing for other reference and ideas too.
Basically I'm trying to use arma objects to make ramps and jumps for a quick fun map. Any suggestions on objects to use would be great. I hoped I'd be able to find bridges and such in the editor but they are not there![]()
Then use setPosATL instead of ASL (sets height above current terrain instead of sea).
Or use the 3D editor: make a search and you will find info on that.
There is "Land_ConcreteRamp" object.
I'd use cargo containers, or houses setPos to negative, so their roof could be used as a ramp.Piers have nice flat sides too (you need to rotate them in 3d though)
Wow thanks for that info, had no idea about 3d editor will check that out, im guessing that's where I will find objects such as "Land_ConcreteRamp"?