Jump to content
Sign in to follow this  
Funkman

AssignAsDriver troubles

Recommended Posts

Heya,

I looked up how to make a man get in a car and drive it in past threads, and AssignAsDriver was the given solution.

Well, great I thought.

So I had a functionary "Civ1" and a hatchback "C1" I put

Civ1 assignAsDriver C1

And it worked fine much to my happiness.

So later on, I am trying to do the same thing with a civ who is armed with an M16, and using a pickup and it just wont work.

I have him (L1) right next to the pickup (Car) and I am using the command

L1 assignAsDriver Car

But he just wont get in the damn thing.

I want him to spawn in or next to the car, and drive through a set of waypoints. Any other suggestions on how to do this?

---------- Post added at 11:23 AM ---------- Previous post was at 10:26 AM ----------

SOLVED!

I used MoveInDriver instead of AssignAsDriver.

Happy days!

Share this post


Link to post
Share on other sites

After assign, you could also have used orderGetIn. Don't have a clue if there is anything special going on about the civvies though. But assignAsDriver and orderGetIn will normally "look better" than the simple teleportation, but only "means something" if you can actually see it happen.

Share this post


Link to post
Share on other sites

Ok, thanks for that. I will try it out next time I need it.

Share this post


Link to post
Share on other sites

I'm trying to do somthing simular. But I can't get it to work. Do you put this into the unit's init line?

I found my problem, when my unit's was in a group the command didn't work. So i removed the groupe string, then it work:D

Edited by Drapoel

Share this post


Link to post
Share on other sites
I'm trying to do somthing simular. But I can't get it to work. Do you put this into the unit's init line?

I found my problem, when my unit's was in a group the command didn't work. So i removed the groupe string, then it work:D

It can be in an init, in the units init you could put

this moveindriver  carname

but if you put it in the cars init it would be

unitname moveindriver this

It's probably better to name both units and then you can use the command anywhere

unitname moveindriver carname 

to move them in with actions

its

unitname  assignAsDriver Carname 
[unitname] orderGetIn true

or something very close to that.

Edited by F2k Sel

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×