Jump to content
Sign in to follow this  
dr@gon

Syntax for getOut command in a Trigger

Recommended Posts

Hi

I used to know how to do this but I can't figure it out now.

I'm trying to get an Artillery Gunner to get out of his gun once enemy units are within 10 feet.

The mission is to Destroy the artillery but it doesn't make sense to me that the gunner just sits in the gun waiting to die when player and team are that close.

I want the gunner to dismount the gun and fight as infantry once the opposing force is close.

I use this in the init line of a Trigger;

doGetout Ar1;

Ar1 is the gunner's name.

It works fine except after walking around for a second he remounts the Gun.

What am I missing?

Share this post


Link to post
Share on other sites

I think you need to also unassign him from the vehicle.

Use this code:

unassignVehicle Nameofunit;

Or this:

{ unassignVehicle _x } forEach crew Nameofvehicle;

Edited by GrumpyRhino
Added extra option

Share this post


Link to post
Share on other sites

Thank you I will give it a try.

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  

×