Home   Help Search Login Register  

Author Topic: How to raise an object in to the air?  (Read 1827 times)

0 Members and 1 Guest are viewing this topic.

Offline edgren

  • Members
  • *
How to raise an object in to the air?
« on: 27 May 2008, 19:39:28 »
Hi everybody!

I just wonder how I can raise an object in to the air?

Thanks in advance!

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: How to raise an object in to the air?
« Reply #1 on: 27 May 2008, 19:46:51 »
if the object is moveable, then using velocity command:
_object setVelocity [0,0,10];

if not, then using setPos command.

Offline edgren

  • Members
  • *
Re: How to raise an object in to the air?
« Reply #2 on: 27 May 2008, 20:11:17 »
Thanks, but I can only find setPosASL :S How does the desc. of setPost look like?


#EDIT: Do not quote the entire previous post you're replying to.   h-
« Last Edit: 29 May 2008, 16:52:37 by h- »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: How to raise an object in to the air?
« Reply #3 on: 27 May 2008, 20:28:54 »
setPos is the same but there is a difference between them, third element in the array of ASL is above sea level height, while setPos uses above ground level heights.

setPos command

EDIT:
Your are linking to ArmA commands filter of the comref, which displays only new ArmA commands, setPos was present in OFP too.
« Last Edit: 27 May 2008, 20:31:25 by Mandoble »

Offline edgren

  • Members
  • *
Re: How to raise an object in to the air?
« Reply #4 on: 27 May 2008, 20:49:03 »
Thank you! But my Ammo SLA-object will not raise! Posting a image on how I have done.


Offline Cheetah

  • Former Staff
  • ****
Re: How to raise an object in to the air?
« Reply #5 on: 27 May 2008, 21:03:12 »
Quote
ammobox setPos [(getpos ammobox select 0),(getpos ammobox select 1),1];
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline edgren

  • Members
  • *
Re: How to raise an object in to the air?
« Reply #6 on: 27 May 2008, 21:09:14 »
That did'nt work either :(

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: How to raise an object in to the air?
« Reply #7 on: 27 May 2008, 21:19:41 »
Dont name your ammo box player, player is a reserved name for the player, dont use it for anything else.
Put this into your ammo box init field:
Code: [Select]
this setPos [getPos this select 0, getPos this select 1, 2]

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: How to raise an object in to the air?
« Reply #8 on: 27 May 2008, 21:42:42 »
And put it in the Initialization field, not the description field!

Wolfrug out
"When 900 years YOU reach, look as good you will not!"

Offline edgren

  • Members
  • *
Re: How to raise an object in to the air?
« Reply #9 on: 29 May 2008, 01:16:38 »
Thanks :D