OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Skumball on 09 Nov 2002, 00:15:54

Title: How do you get a unit into a vehicle with a script?
Post by: Skumball on 09 Nov 2002, 00:15:54
I'm trying to do (almost) everything with scripts so is this possible?
Title: Re:How do you get a unit into a vehicle with a script?
Post by: Ranger on 09 Nov 2002, 00:22:00
Sure, it's quite possible.  Let's call your unit man1.  Let's say he's trying to get into a HMMWV named hummer1.  Your code would be as follows:

man1 assignAsCargo hummer1

[man1] orderGetIn true
Title: Re:How do you get a unit into a vehicle with a script?
Post by: Skumball on 09 Nov 2002, 01:57:32
great! thanks!
Title: Re:How do you get a unit into a vehicle with a script?
Post by: Black_Feather on 09 Nov 2002, 07:02:13
you can also make him get in instantly with

man1 moveinCargo hummer1
Title: Re:How do you get a unit into a vehicle with a script?
Post by: Totibbs on 11 Nov 2002, 00:05:51
and how can I let him go out?