OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ram TN on 02 Sep 2002, 10:29:23

Title: How do I set an item's height?
Post by: Ram TN on 02 Sep 2002, 10:29:23
Title says it all...  ;)
Title: Re:How do I set an item's height?
Post by: Chris Death on 02 Sep 2002, 10:43:28
item setpos [(getpos item select 0),(getpos item select1), 10]

This would set item's height 10 m higher

~S~ CD
Title: Re:How do I set an item's height?
Post by: Ram TN on 02 Sep 2002, 11:38:34
Thanks m8  8)
Will this work on units as well?
Title: Re:How do I set an item's height?
Post by: Chris Death on 02 Sep 2002, 11:46:04
Quote
Will this work on units as well?

Yes it does

~S~ CD
Title: Re:How do I set an item's height?
Post by: Ram TN on 02 Sep 2002, 11:48:57
I tried it on a chopper, and it didn't work. Any ideas why?
It says 'unknown operator select1'
Title: Re:How do I set an item's height?
Post by: Chris Death on 02 Sep 2002, 11:51:49
huh - just noticed that

You need to put a space (blank) in between "select" and "1"
select 1

I guess, you copy/pasted the one above, therefore it didn't
work.

~S~ CD
Title: Re:How do I set an item's height?
Post by: Ram TN on 02 Sep 2002, 11:54:09
Thanks man, you're the best!