OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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]?
-
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
-
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
-
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.
-
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...
-
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.
-
Setpos the unit either to it's current position, or juust above it (+0.0001 for example), and it'll work fine ;)
...*ahem*::)
- Ben
-
Ow sorry, Ben
I thought you were talking about a setpos loop, my mistake.:beat: