Home   Help Search Login Register  

Author Topic: how to setPos a sodier to a watchtower?  (Read 606 times)

0 Members and 1 Guest are viewing this topic.

gundernak

  • Guest
how to setPos a sodier to a watchtower?
« on: 01 Nov 2003, 18:18:22 »
Hi all,

I would like to setPos a sodier to a watchtower.

Please help me in the syntax and what command to use in the soldier's init field or in a script made for achieve this.

Thanks in advance


mikeb

  • Guest
Re:how to setPos a sodier to a watchtower?
« Reply #1 on: 01 Nov 2003, 18:25:13 »
place him directly over the tower and put the following in the init line:

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

the + 3 puts him 3m in the air.  experiment with this value until you get him where you want.  you may also want to put:

 this setunitpos "up"

This prevents him from going prone while in the tower

GrimMonkey

  • Guest
Re:how to setPos a sodier to a watchtower?
« Reply #2 on: 01 Nov 2003, 18:31:36 »
I haven't tried that mikeb,

What I use is:
Code: [Select]
This SetPos [Getpos This Select 0, GetPos This Select 1, x]x being the variable height.

Or you could select 'Flying' in the 'Special' menu of the unit

And as mikeb said:
Code: [Select]
This SetUnitPos "Up"

Beware the GrimMonkey

gundernak

  • Guest
Re:how to setPos a sodier to a watchtower?
« Reply #3 on: 01 Nov 2003, 18:43:50 »
Thanks mikeb!!!

It was pefect....and working

GrimMonkey,

I think the '...select ) + 3' is always exactly the height of the coordinates

anyway thank you Gentlemen

mikeb

  • Guest
Re:how to setPos a sodier to a watchtower?
« Reply #4 on: 02 Nov 2003, 15:00:36 »
what grimmonkey said will work just as well with a little less text.  my line put the unit up 3m relative to where he starts .  seeing as the ground units always start at 0m (ground level) anyway, you can leave the last "select" bit out and put in a staright number value.

_hammy_

  • Guest
Re:how to setPos a sodier to a watchtower?
« Reply #5 on: 02 Nov 2003, 15:40:55 »
solve topic then?

sabreblade

  • Guest
Re:how to setPos a sodier to a watchtower?
« Reply #6 on: 02 Nov 2003, 19:41:28 »
lol thx guys you helped me out too  :)

gundernak

  • Guest
Re:how to setPos a sodier to a watchtower?
« Reply #7 on: 02 Nov 2003, 21:54:32 »
thanks all,

I left this topic open to be able to reply or add something else...

definetely we can close
 ;)