Jump to content
Sign in to follow this  
MaveryQ

Addaction for Pilot and crew

Recommended Posts

I try to have a fast rope with an helicopter.

I want that the pilot set rope and the passenger jump himself.

So i add an action "set rope" to the carrier, the pilot and the passenger see the action.

When the pilot sets rope, i remove the action "set rope" and i add the action "jump". The pilot see the jump action but not the passenger.

How can i do to have the action activable by the passenger ???

Share this post


Link to post
Share on other sites

Any idea ?!

If a player change a menu of a vehicle by AddAction with the vehicule for Object, why the other player in the vehicule doesn't see his menu changed ?

in eventHandler of the vehicle i have:

Start.sqf

private ["_carrier"];

_carrier = _this select 0;

dply = _carrier addaction ["set ropes","\dbo_mh6\whos.sqf"];

Whos.sqf

endcargosession2 = true;

private ["_carrier"];

_carrier = _this select 0;

fst = _carrier addaction ["Saut","\dbo_mh6\prepare_eject.sqf"];

_carrier removeaction dply;

So why when the pilot select "Set Rope", he can select "Saut" and the soldat or gunner have always "Set Rope".

The soldat or gunner can Select "Set rope" but in this way i see two rope under the vehicle !!!

Edited by MaveryQ

Share this post


Link to post
Share on other sites

Instead of having an .sqf to add the first action "set ropes", just add it by putting this in the vehicles init.

dply = _carrier addaction ["set ropes","\dbo_mh6\whos.sqf"];

Then in your Whos.sqf

endcargosession2 = true;

private ["_carrier"];

_carrier = _this select 0;

fst = _carrier addaction ["Saut","\dbo_mh6\prepare_eject.sqf"];

From when I tested it any person in the vehicle could "set the ropes", then that action disappears, then everyone in the vehicle can select "Saut".

Is this not what your trying to achieve because it worked for me.:bounce3:

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  

×