Jump to content
Sign in to follow this  
RazorHead1

Removing Driver (not G-cards)

Recommended Posts

Tried searching, but all I ended up with were threads for 'graphics cards drivers'.

What is the script for removing a driver in a vehicle that normally has one? ie an ammo truck has a driver by default. How do I remove him so the vehicle is empty. Besides using the 'empty' type of vehicles.

Share this post


Link to post
Share on other sites

Why wouldn't you use an empty vehicle? What are you trying to do exactly?

Share this post


Link to post
Share on other sites

The vehicle I want to use is not in the empty list. So I have to use a manned one then un-man it. Trying to make a check point scenario with parked vehicles.

Share this post


Link to post
Share on other sites

on init

driver vehicle this action["GETOUT",vehicle this]

or in some script

Share this post


Link to post
Share on other sites

What vehicle is it? nuxil's idea would work, but then you'd have some dude standing around, and if he's grouped would probably be told to get back in unless you unassign him, which just adds more complexity to what's a very simple thing if we only knew what vehicle you're talking about. :)

Share this post


Link to post
Share on other sites

I swear someone posted a code that could delete a pilot from a Huey. May be it was the whole copter but I thought they said something about just deleting the pilot as well. It was a thread about "adding cool stuff to missions" or something like that but I can't seem to find it under search and unfortunately there's so many repetitive threads in this section that a manual search is not gonna happen.

RazorHead1,

Not in the empty list? Which vehicle is that? maybe you could just spawn an empty one somehow.

Share this post


Link to post
Share on other sites

how about a getout waypoint placed on the vehicle and then another close by with this in the action box

men=thislist;{ deletevehicle _x } forEach men;

Edited by F2k Sel

Share this post


Link to post
Share on other sites

What vehicle are you trying to add?

Share this post


Link to post
Share on other sites

I was trying to add an ammo truck of a certain type in the end I just put an empty URAL and added the Ammo using script. A little longer but it got me the same results. Thanks guys.:cool:

Either way I just thought it would be useful (to us all) to know the code for removing actors from the vehicles.

Share this post


Link to post
Share on other sites

In the editor, don't you just edit the vehicle properties to "playable" or something like that? In script, you just createVehicle. How can this be a problem?

Share this post


Link to post
Share on other sites

Excuse me for borrowing this thread too, but I found it while I was browsing for a solution to a problem I have. I am wondering exactly the same thing.

I am working on a mission where you are going to get a helicopter and fly it over enemy grounds guarded by IGLA launchers. The idea is that you should take out the launchers before flying off with the chopper.

Now, if I just place an empty huey from the empty list, jump in and fly over, the launchers won't even fire. They will just keep you in their sights. But if you place a huey from the blufor side, kill all the crew or order them to disembark, and then fly that chopper over the same area, you will be blown out of the sky very soon. The game doesn't seem to fully register empty vehicles as enemy in the same way. The odd thing is that enemy foot soldiers will fire at it, no matter what.

I am probably overlooking something obvious but I would really want this to work without having to execute the crew or have it exit the chopper everytime I need to borrow it.

Cheers!

Edited by MadMantiz

Share this post


Link to post
Share on other sites

Some of the ammo trucks are under "Support" list, not under "Car".

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  

×