Home   Help Search Login Register  

Author Topic: Getting High  (Read 786 times)

0 Members and 1 Guest are viewing this topic.

ZillyBoi

  • Guest
Getting High
« on: 16 Aug 2005, 18:45:23 »
Well all, before I go on please will all the smokers and sniffers who thought this was a different message leave. Ok I'm in a sort of problem, I need to get my soldiers to sit up above the ground but the tutorial gave me the init lines for pinpoint placing of troops on a map. Thing is that I dunno if it was here that I asked this question before of what but he/she gave me a line to put into the init field and it didn't move him about but instead just raised him above the ground to my desired height.
   So I just need the init line you use when you place a unit on a map and you want to just move his Z properties and leave the x and y ones alone. I remember it was a long line and alot of "set position ...." Please can you help me cos I don't want to have to adjust the exact point on the map for every soldier just so I can stick him up somewhere.
      Please do help!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Plenty of reviewed ArmA missions for you to play

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Getting High
« Reply #2 on: 17 Aug 2005, 00:31:02 »
the search button in action lol.
i'm sure maccy intended to remind you but since he didn't i will:
use the forum search and check the FAQ before posting, you'll be able to find the answers to most of your questions that way

ZillyBoi

  • Guest
Re:Getting High
« Reply #3 on: 03 Sep 2005, 23:03:05 »
hmm i dunno if i got amnesia or what but I forgot the proper answer to my question, I remember you gave me an init line snippet to put in but I can't find it now ..... can you please give it to me again, I just wanna place normal troops high in the air to drop them! I'm not freaky or anything, plus I wanna see what happens to vechiles that fall from great heights! Please relpy!

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Getting High
« Reply #4 on: 04 Sep 2005, 08:36:18 »
Give a man a fish and he will feed his family for a day.  Teach him to fish and he will feed them for a lifetime.

Go to Editors Dept/Online References/Commands - here is the link:
http://www.ofpec.com/editors/comref.php
and look at setPos and getPos.

getPos will give you an array containing the x,y & z coords.

setPos will move something to a specific location.  

So what you need is:

this setPos [getPos this select 0,getpos this select 1,200]