Jump to content
Sign in to follow this  
kocrachon

Custom Action

Recommended Posts

So I am using the RC BE32k mod and the aircraft has an option called "EJECT CARGO". And I was wondering if there is a way to make it work with the AI? I tried the action command like this.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Plane1 action ["EJECT CARGO", vehicle Plane1]

But that of course it doesnt work.. so is there any tips on how to make this work, or will the AI not be able to do it at all?

Share this post


Link to post
Share on other sites

try:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

{_x action ["eject", vehicle _x} foreach crew plane1;

Share this post


Link to post
Share on other sites

if you dont want the driver|gunner to eject

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

{if not((_x == driver vehicle _x) or (_x == gunner vehicle _x))  then {_x action ["eject", vehicle _x};} foreach crew plane1;

Share this post


Link to post
Share on other sites

thanks, but the only reason I ask this s because the "eject cargo" option that the custom aircraf thas makes it where it drops the guys out one by one instead of launching them all out in a big circle.

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  

×