Home   Help Search Login Register  

Author Topic: On Roof  (Read 505 times)

0 Members and 1 Guest are viewing this topic.

GrimMonkey

  • Guest
On Roof
« on: 22 Aug 2003, 04:04:48 »
How would one make it so that soldiers started out on a roof or on top of an object or building?

Siber Fox

  • Guest
Re:On Roof
« Reply #1 on: 22 Aug 2003, 04:33:42 »
Well, Mr. Monkey, that can be solved with this:

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

x = the height of the object/building, you really need to use trial and error to get it right.

EX:
this setpos [getpos this select 0, getpos this select 1, 24.5]
is the height for the 2 tall towers in Petrovice on Nogovo

hope that helps.

Captain Winters

  • Guest
Re:On Roof
« Reply #2 on: 22 Aug 2003, 05:02:56 »
If you have Resisatnce, I do believe it does it automatically!  :)

Tanks!  8)

Captain Winters

  • Guest
Re:On Roof
« Reply #3 on: 22 Aug 2003, 05:03:28 »
btw that code Fox gave you goes into the units init

Tanks!  8)

GrimMonkey

  • Guest
Re:On Roof
« Reply #4 on: 22 Aug 2003, 05:39:09 »
Thank you, I'll put it to great use. :)

SheepOnMintSauce

  • Guest
Re:On Roof
« Reply #5 on: 22 Aug 2003, 20:38:01 »
What I usually do to make a unit start on the roof of a building, like those blocks of flats in Petrovice, I just set the units 'special' option to "flying", and the unit automatically starts on the roof of the building.  ;D

GrimMonkey

  • Guest
Re:On Roof
« Reply #6 on: 22 Aug 2003, 20:54:43 »
Thanks, I just tried the script way, it works, but I'll have a go at 'flying' :).

GrimMonkey

  • Guest
Re:On Roof
« Reply #7 on: 22 Aug 2003, 21:02:52 »
What do ya know, they both work ;D.

SheepOnMintSauce

  • Guest
Re:On Roof
« Reply #8 on: 22 Aug 2003, 23:52:02 »
I used the 'flying' method once for putting snipers on the rooftops in Petrovice. Worked a treat too.  ;D

Ah, almost forgot. It doesn't like working with vehicals for some reason. I'm not quite sure why that is though. Tried putting a bike on top of the roof to drive it off, but alas it didn't work.  ::)
« Last Edit: 22 Aug 2003, 23:53:51 by SheepOnMintSauce »

GrimMonkey

  • Guest
Re:On Roof
« Reply #9 on: 23 Aug 2003, 01:56:59 »
So we really do need both kinds to effectvely get objects and humanoids on top of rooftops. Thanks for all your assistance :).