Home   Help Search Login Register  

Author Topic: 1st floor  (Read 881 times)

0 Members and 1 Guest are viewing this topic.

Siber Fox

  • Guest
1st floor
« on: 08 Jun 2003, 07:47:20 »
How does one get troops to start on the first floor, second floor, ect.?

And how does one do the same with objects, such as chairs, tables, ect.

Kaliyuga

  • Guest
Re:1st floor
« Reply #1 on: 08 Jun 2003, 07:59:23 »
For objects:

1) Trial and error in the Mission editor..

2) setpos command:
this setpos[getpos this select 0, getpos this select 0,x]

x = height above ground


for units:

1)make waypoint directly over name of enterable building in ME .... you'll know you've done it right if you cannot move the waypoint after....

most all enterable buildings have position numbers....  after placing the waypoint on the building you should see another field come up.... "position number" (or something close)  ;D  

and you can select a number there..... and the dude will go to that spot in the building :)

Siber Fox

  • Guest
Re:1st floor
« Reply #2 on: 08 Jun 2003, 08:17:04 »
Thanks, but I ment how does one get a guy to START in the first floor in the building, I know how to make him move there.

Thanks again.

unkie

  • Guest
Re:1st floor
« Reply #3 on: 08 Jun 2003, 08:30:00 »
treat him like an object...setpossetpossetpos...

Kaliyuga

  • Guest
Re:1st floor
« Reply #4 on: 08 Jun 2003, 08:30:16 »
far as I know the only way to do that is by using the same method you would with an object...  guessing at the position in the editor and using the setposition command to lift him to the proper height
:cheers:

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:1st floor
« Reply #5 on: 08 Jun 2003, 10:49:26 »
also remember that if you place a unit above a house in the editor (one that exists with the map) he will be placed on the top floor of that house.... this top floor then acts as 0m - so if a house has 3 floors, and of course he will be on the 3rd, then u have to minus height from his init line to get to the lower floors.
Proud Member of the Volunteer Commando Battalion

KyleSarnik

  • Guest
Re:1st floor
« Reply #6 on: 08 Jun 2003, 23:52:37 »
I placed a guy in a building, I think on the top floor, using a positive height. And if the building has an accessable roof, the unit will start on the roof.

Siber Fox

  • Guest
Re:1st floor
« Reply #7 on: 09 Jun 2003, 02:19:34 »
Can someone explain this:

I put in this setpos [getpos this select 0, getpos this select 0, 7] and I appeared in the middle of water and drowned... does any one know what went wrong?

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:1st floor
« Reply #8 on: 09 Jun 2003, 02:25:07 »
this setpos [getpos this select 0, getpos this select 0, 7]

You're giving it two x co-ords instead of an X and Y... ;)

Try:

this setpos [getpos this select 0, getpos this select 1, 7]