OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ZillyBoi 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!
-
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=25207
-
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
-
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!
-
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]