OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: edgren 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!
-
if the object is moveable, then using velocity command:
_object setVelocity [0,0,10];
if not, then using setPos command.
-
Thanks, but I can only find setPosASL (http://www.ofpec.com/COMREF/index.php?action=list&game=ArmA&letter=s#737) :S How does the desc. of setPost look like?
#EDIT: Do not quote the entire previous post you're replying to. h-
-
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 (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=s#313)
EDIT:
Your are linking to ArmA commands filter of the comref, which displays only new ArmA commands, setPos was present in OFP too.
-
Thank you! But my Ammo SLA-object will not raise! Posting a image on how I have done.
(http://erik.edgren.nu/images/games/arma5.jpg)
-
ammobox setPos [(getpos ammobox select 0),(getpos ammobox select 1),1];
-
That did'nt work either :(
-
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:
this setPos [getPos this select 0, getPos this select 1, 2]
-
And put it in the Initialization field, not the description field!
Wolfrug out
-
Thanks :D