Jump to content
Sign in to follow this  
HateDread

Init Help with AI Pilots in AI Vehicle + Deleting Them

Recommended Posts

How does one, via init field or trigger, get the AI pilot to switch on the headlights? I've tried things like H1 action ["lightOn", H1], where H1 is the heli, but it doesn't work.

Also, how does one delete the pilots?

How does one kill the pilots once they're out? They're part of a group called 'Heli', so maybe that helps?

Cheers.

Share this post


Link to post
Share on other sites

Hallo HateDread!

Look, first, check the time of day... MAYBE that's why you don't see them or the pilot doesn't turn them on... Probably you just can't see them.. it happened to me...

Now, deleting them.. You just gotta use this command: DeleteVehicle Heli; in a trigger or when they accomplish a target... you just put that command wherever you want it to be deleted or just post your mission idea (if i get to read it) me, or someone else can get you in the right direction!

Best Regards, SGJackson!

Share this post


Link to post
Share on other sites

Will the 'DeleteVehicle Heli' command delete everyone in the group 'heli', including crew?

Nah, it's night-time. I need to force the headlights on.

Share this post


Link to post
Share on other sites

hmmm, that depends, if you make the crew GET IN (means the heli was empty) then it'll only delete the heli. But if you created a heli via BLUFOR>Air>AH-1Z and you named it heli then yes, it delete the whole crew...

heli action ["LightOn",heli]; that should do it... Otherwise, i'm pretty sure that he turns his lights on AUTOMATICLY if it's night time...

Best Regards, SGJackson!

Share this post


Link to post
Share on other sites

I created a UH-60 via units, yes, so crew was automatically generated.

It's init field says Heli = group this;

In a script, I say deletevehicle heli, and it should delete crew too? Shouldn't it be something including foreach <group>?, or something?

Share this post


Link to post
Share on other sites

No. The crew will automaticly be deleted if you add the syntax DeleteVehicle Heli;

Now, why did you put Heli = group this;? Simply place "Heli" into the "Name" field in the Units menu ;)

And please explain to me what are you trying to do! Because i'm lost... Why did you put into a script deletevehicle heli;? I mean, you can do it of course but, please tell me when/where/how are you trying to delete it :P 'cause i'm really lost :P

Best Regards, SGJackson!

Share this post


Link to post
Share on other sites

I did that to place the helicopter into a group called 'heli', as I thought that would include the crew.

The helicopter is actually named 'H1', with an empty replacement helicopter named 'H2'.

I'm trying to delete the crew, as part of a crash sequence where I fade the screen to black, teleport the players away and play an explosion sound effect, teleport in 'H2' on top of 'H1', remove 'H1', blow up 'H2', then teleport players back in afterwards, so when screen fades out of black, they see an exploded wreck of what they believe is 'H1'.

This was just to accomplish a certain effect I was aiming for. Problem is, the crew of H1 is still on the ground, as H2 was an empty heli - I know the crew wasn't from it. I need to remove the crew who have automatically disembarked from the first helicopter (H1), when it crash-lands.

Any ideas?

Share this post


Link to post
Share on other sites

:O:O:O:O

Sorry mate.. i didn't get a S*** of what you said xD

Let's see... The "H1" is IN a group or is a simple unit?

Look, let's make it even more simple... Download this: http://www.armaholic.com/page.php?id=4847 It's the editing guide for ArmA and also for ArmA II... It'll be very strange if you cannot do any of this things in ArmA II but, s*** happends... and this is even MORE official: http://community.bistudio.com/wiki/Category:Scripting_Commands_ArmA2 Here ALL THE COMMANDS WORK FOR ARMA II!!!!!!!!!!!

And it's made by the game-creators so there's no mistake there...

Best Regards, SGJackson!

Share this post


Link to post
Share on other sites

I have been using those scripting pages and command lists.

I am just trying to delete the automatically-generate crew of a helicopter I made via the 'units' tab in the editor, when activated by a script.

:P

Share this post


Link to post
Share on other sites

if you created MEN and i mean ONLY MEN and with that i meant NOT IN A VEHICLE then just enter the syntax DeleteVehicle Crew1; deletevehicle crew2... Or you could do an Array: deletevehicle [crew1,crew2] or if you want to delete A GROUP then enter this: {deletevehicle _x} foreach units group <grpleadernamehere>; or deleting every unit that enters A AREA: {deletevehicle _x} foreach thislist; (thislist = Axis of the trigger)

PD: PLZ DOWNLOAD THE EDITING GUIDE, i learned most of the things there...

Best Regards, SGJackson!

Share this post


Link to post
Share on other sites

Ahah! Those are the commands I needed! Thank you for all your help!

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  

×