Home   Help Search Login Register  

Author Topic: Stupid quesiton about flying height  (Read 1076 times)

0 Members and 1 Guest are viewing this topic.

McFinnish

  • Guest
Stupid quesiton about flying height
« on: 26 Sep 2004, 11:51:45 »
Hello again! I want to position soldier in a 10 meters high, and I just can't remeber how it went (it was somthing like getpos setpos or something). How did it went?

Thanks!  ;)

See ya later, alligator!

- Snypa

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Stupid quesiton about flying height
« Reply #1 on: 26 Sep 2004, 12:41:56 »
Look up setPos in the online comref.
Plenty of reviewed ArmA missions for you to play

Comrade Joe

  • Guest
Re:Stupid quesiton about flying height
« Reply #2 on: 26 Sep 2004, 21:09:46 »
Try this :

unitname setvelocity [0,0,200]


Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Stupid quesiton about flying height
« Reply #3 on: 26 Sep 2004, 22:31:29 »
Try this :

unitname setvelocity [0,0,200]



Umm.... that's not really what he is asking for.  ???
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Comrade Joe

  • Guest
Re:Stupid quesiton about flying height
« Reply #4 on: 27 Sep 2004, 09:53:00 »
Dont bother, it only seems to be working with vehicles. :(
« Last Edit: 27 Sep 2004, 09:53:13 by Comrade Joe »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Stupid quesiton about flying height
« Reply #5 on: 27 Sep 2004, 11:57:49 »
setVelocity doesn't work with a loon touching the ground, if I remember correctly.
Plenty of reviewed ArmA missions for you to play

Nulear_Man

  • Guest
Re:Stupid quesiton about flying height
« Reply #6 on: 27 Sep 2004, 12:37:56 »
Quote
Dont bother, it only seems to be working with vehicles.


then use this


setVelocityMan.sqs

_Unit = _this select 0
_UnitPos = Getpos _Unit

_UnitType = typeof _Unit
deleteUnit _Unit
_UnitType camCreate _UnitPos
exit

that should override it
or you could use CreateVehicle also

Offline ryankaplan

  • Members
  • *
  • yeah...
Re:Stupid quesiton about flying height
« Reply #7 on: 27 Sep 2004, 17:31:05 »
the simplest way to do it from what i know is (put this in the mans init field);

this setpos [getpos this select 0, getpos this select 1, 10]

setpos tells the game to set his position
getpos gets the mans position
select 0 or select 1 selcts the same postion you got from getpos
10 is the vertical height.

hope this helps