OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: RujiK on 31 Aug 2005, 18:50:15

Title: man setvelocity
Post by: RujiK on 31 Aug 2005, 18:50:15
Since I started playing ofp and started editing I have found that (or thought) that a UNIT'S (like a civilian1) velocity cannot be set. It just doesnt do anything. However recently I downloaded the human shell mission that USES a MAN to set velocity! I never thought this was possible and just wanted to know what allows set velocity and what doesnt.

The link can be found here:

Human Shell (http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=-1&catselected=-1_-1&catagory=-1&subcategory=-1_-1&numreturn=25&displayformat=0&ofpv=1&searchwhat=1&searchlevel=0&searchwhat=1&searchopts=&searchstring=humanshell)

So the question one more time, how does one make a infantry unit be able to do man setvelocity [50,50,50]?
Title: Re:man setvelocity
Post by: bored_onion on 31 Aug 2005, 18:51:42
they might have put him inside an invisible addon for a vehicle which you can move. thats how i would have done it, anyhow... :P
Title: Re:man setvelocity
Post by: DBR_ONIX on 31 Aug 2005, 18:54:08
Err, search for jumping scripts, or..
Setpos the unit either to it's current position, or juust above it (+0.0001 for example), and it'll work fine ;)
- Ben
Title: Re:man setvelocity
Post by: RujiK on 31 Aug 2005, 19:03:56
I already know that. I want to know how to setvelocity on a man. Nothing else. Human shell contains no addons other then resistance. What I want to know is WHY does setvelocity work in that script but when i just do man setvelocity [10,10,10] it does nothing.
Title: Re:man setvelocity
Post by: Blanco on 31 Aug 2005, 21:24:10
True, it's strange. I've asked the same thing about that shinobi addon on the BI forum, they also use setvelocity on that ninja you know.
No answers so far.
It seems to work when you copy the velocity from something else and use it on your man, I dunno...





Title: Re:man setvelocity
Post by: Raptorsaurus on 31 Aug 2005, 23:03:36
Set velocity works on a man if he is in the air, so if you first setPos him a little bit above the ground you can then do the rest with setVelocity.
Title: Re:man setvelocity
Post by: DBR_ONIX on 31 Aug 2005, 23:47:18
Setpos the unit either to it's current position, or juust above it (+0.0001 for example), and it'll work fine ;)

...*ahem*::)
- Ben
Title: Re:man setvelocity
Post by: Blanco on 01 Sep 2005, 00:52:44
Ow sorry, Ben
I thought you were talking about a setpos loop, my mistake.:beat: