OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: DMB on 18 May 2008, 12:06:39
-
I'm just trying to make an intro for my mp mission and i came up to the point where im a bit frustrated now.
Is there any chance to make existing player to drive a vehicle without actually using my keyboard?
I mean somethin like:
'cam setup & initialized'
MyPlayer moveindriver Vehicle
MyPlayer domove Waypoint
'following script'
which will obviously work with AI player, but can I make my player to move somethere with disabled control of mine? Or I will need to make duplicate(stuntman) of my character, put him in driver, move, and then replace with my character again?
Thanks.
P.S. for nice explanation will give you a credit. ;)
-
You'll need a stuntman. If your unit was a passenger then moveInCargo would instantly get him in. MoveInDriver will get him in as driver but you would have to use setPos and setVelocity to make the vehicle move. Check out this script which can move the vehicle for you...
http://www.ofpec.com/ed_depot/index.php?action=details&id=271&page=0 (http://www.ofpec.com/ed_depot/index.php?action=details&id=271&page=0)
No credit required :)
-
thanks Peanut. Sorted. :)