Home   Help Search Login Register  

Author Topic: Problem with setPos  (Read 586 times)

0 Members and 1 Guest are viewing this topic.

tehhunter

  • Guest
Problem with setPos
« on: 21 Jul 2005, 08:28:48 »
Howdy everyone. I've been working on a mission for a few days now, revolving around the bridge in Davle, and I have a problem:

When I use the setPos command, I set the unit (a blackop) at the location of a game logic (gl_loc). However, as I soon noticed, he spawns underwater and subsequently drowns.

I then tried to just use a script like
Code: [Select]
bo1 setPos [getPos gl_loc select 0, getPos gl_loc select 1, (getPos gl_loc select 2) +15]
This, I thought, would spawn the unit 15 meters above water at the location of the game logic, enough to be higher than said bridge. However, he still continues to spawn under the bridge, underwater.

Is there anything I might be able to do for this?
« Last Edit: 21 Jul 2005, 08:29:19 by tehhunter »

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Re:Problem with setPos
« Reply #1 on: 21 Jul 2005, 08:38:49 »
try this:

bo1 setpos [(GetPos gl_loc select 0),(GetPos gl_loc select 1), 15]

and it should work
"If I remain lost and die on a cross, atleast I wasn't born in a manger"