Home   Help Search Login Register  

Author Topic: Fieldgun in Bunker, cant get position inside right  (Read 664 times)

0 Members and 1 Guest are viewing this topic.

MadFred

  • Guest
Fieldgun in Bunker, cant get position inside right
« on: 06 Mar 2003, 13:33:28 »
Hi,

I have got two units I would like to combine,
M46 fieldgun and Large raised blockhouse

I would like to place the fieldgun(s) inside these bunkers as a coastal defence for a beach landing mission I am making,

however as the inside floor of the blockhouse is raised above the normal ground level, the gun just sits inside the floor instead of on the floor

I have read some topics about putting units in or ontop of buildings and tried to match answers with my siuation and still it wont work or the thing I put in the init filed is not accepted,

The fieldgun is called gun1 and the blockhouse bunker1
the floor inside is approx. 2 meters above the ground

can anyone give me an example of what to put in the guns Init field to get it right?

I can tinker with height value afterwards to get it just right but I dont know how to get it there in the first place

Thanks in advance

MadFred

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Fieldgun in Bunker, cant get position inside right
« Reply #1 on: 06 Mar 2003, 15:44:58 »
Hi!

gun1 setpos [getpos this select 0, getpos this select 1,(getpos this select 2)+2]

will do the trick ;)
Not all is lost.

MadFred

  • Guest
Re:Fieldgun in Bunker, cant get position inside right
« Reply #2 on: 06 Mar 2003, 16:09:22 »
Yes it did

Thanks very much

MadFred

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Fieldgun in Bunker, cant get position inside right
« Reply #3 on: 06 Mar 2003, 18:46:10 »
Feel like solving the thread?  :D ;)
Not all is lost.