Home   Help Search Login Register  

Author Topic: Set height of a placed object(SOLVED)  (Read 5182 times)

0 Members and 1 Guest are viewing this topic.

Offline Crowey

  • Members
  • *
Set height of a placed object(SOLVED)
« on: 17 Aug 2008, 19:25:10 »
hi guys ive scoured the forums cant find what im looking for basically ive placed a "control hut" which has a desk in it I now want to place a computer on that desk but it keeps placing it on the floor please help me to set how high the comp will be placed...
« Last Edit: 18 Aug 2008, 22:02:54 by Crowey »

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Set height of a placed object
« Reply #1 on: 17 Aug 2008, 20:34:20 »
In the computer object's init line, to place it 1.2 metres up, use
Code: [Select]
this setPos [(getPos this) select 0, (getPos this) select 1, 1.2]

No idea what height you actually need though. Just trial and error ;P
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Denz

  • Former Staff
  • ****
Re: Set height of a placed object
« Reply #2 on: 18 Aug 2008, 01:42:33 »
Another way would be to place a table from the editor (need an editor update), name it "table1" and put
Code: [Select]
pc1 setpos [getpos table1 select 0, getpos table1 select 1, (getpos table1 select 2) + 1.4]That puts it slap, bang in the middle of the table no matter where you put the pc icon. You just have to get the table where you want it.

I know 1.4 is the right height for the table as I've done a similar thing myself ;)

Otherwise as Spooner said it's trial and error to find the sweet spot. The editor icons have no real relation to where the actual item will be placed.
« Last Edit: 18 Aug 2008, 01:49:26 by Denz »
I've got 'em right where I want 'em - surrounded from the inside!
Jerry "Mad Dog" Shriver, SOG Recon One-Zero
24/09/41 - 24/04/69

Offline CrazyAce

  • Members
  • *
Re: Set height of a placed object
« Reply #3 on: 18 Aug 2008, 02:19:56 »
That's what pisses me off about this editor, no hight placement... >:(

Thanx for the tip guys I was wanting to ask that question also, good thing we have RTE.

Offline Luke

  • Members
  • *
  • Thank God! The OFPEC Staff are here!
Re: Set height of a placed object
« Reply #4 on: 18 Aug 2008, 05:17:47 »
I know its kinda off-topic...

But it's also kinda related.

I've been trying to do the same thing.

But I can't find the blasted table!!  :-[

Is it an editor update or what?

Luke
Pesky Human!!
Wort Wort Wort.

Offline CrazyAce

  • Members
  • *
Re: Set height of a placed object
« Reply #5 on: 18 Aug 2008, 05:58:55 »
http://www.armaholic.com/page.php?id=392  6thSense Editor Update - Havent tried this yet.

http://www.armaholic.com/page.php?id=3068 RTE4 - Kind of a pain in the arse to use, but is what I use to place objects height.

http://www.armaholic.com/page.php?id=953 EditorUpdate_v102 - this is where the table is.

Offline Denz

  • Former Staff
  • ****
Re: Set height of a placed object(SOLVED)
« Reply #6 on: 21 Aug 2008, 09:50:25 »
If you don't want to have an editor addon requirement you do have a few improvised choices.
There is the crate in the warfare buildings or empty ammocrates, sandbags etc.
Or even using a combination of setPos and setVectorup, use the bottom of the field toilet for furniture.
see picture
« Last Edit: 19 Aug 2009, 21:54:43 by Mandoble »
I've got 'em right where I want 'em - surrounded from the inside!
Jerry "Mad Dog" Shriver, SOG Recon One-Zero
24/09/41 - 24/04/69