Jump to content
Sign in to follow this  
Muzza

Addaction to a weapon.

Recommended Posts

I realise this is a duplicate title although the other question was changed by the asker and i cannot find any other with the search function.

I would like the player to be able swap the gmc_k98 for a gmc_k98_scope at his request.

I have trigger A

Condition: player hasweapon "gmc_k98"

Activation: gun=true

Trigger B

Condition: gun

Act: player addaction ["attach scope", "scope.sqf"]

However i am stuck with trigger C.

I want gun=false when theplayer does not have the k98, i am not sure how to the add the converce of trigger A. Any ideas?

Share this post


Link to post
Share on other sites

What happens when you insert in trigger A in the on deactivation line your code gun=false?

Share this post


Link to post
Share on other sites

you can use the extended addAction syntax to show the addaction only if a condition is met - no need for triggers.

player addAction ["attach scope","scope.sqf",[],1,true,true,"","player hasWeapon 'gmc_k98'"]

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  

×