OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Phantom on 25 Mar 2003, 14:28:30
-
I'm trying to pile up a bunch of ammo crates, how do i change the height of it so to stack them up?
-
Like this:
Put this the init field of the crate: [this,(getpos this),**PUT THE HEIGHT YOU WHANT HERE**] exec "height.sqs"
And the following in your mission folder:
height.sqs _object = _this select 0
_objpos = _this select 1
_height = _this select 2
_object setpos [(_objpos select 0),(_objpos select 1),(_objpos select 2) + _height]
exit
-
is there one that doesn't require an sqs file?
-
Well, yes. Put this in the init field:
_object setpos [(this select 0),((getpos this) select 1),((getpos this) select 2) + **PUT THE HEIGHT YOU WHANT HERE**]
But i'm not sure if it works...
-
Just replace _object with this or with the object's name
:edit - huh - just been reading that again:
this setpos [(gepos this select 0),(getpos this select 1),height_you_want]
That's the right code now
~S~ CD
-
errr i think he will understand this better.
in init field;
this setpos [getpos this select 0, getpos this select 1, #]
#= height in meters, you can choose whatever you want.
-
this setpos [getpos this select 0, getpos this select 1, 250] FTW!!!
But I cant seen to put objects ontop of roofs. I once did it with an M2 machine gun but it wouldnt stay where I moved it to.
I want to put some things on the roof of Arcadia on the map. THere is a hotel there. Good for chopper landings ;)
-
Don't you think this topic is getting a little long in the tooth?
2003 was a while ago now...........4 years!!!
Planck
-
Yeah I guess, a golden oldie. I searched and added to this one instread of making a new one...