Jump to content
Sign in to follow this  
hard5c0p3k1ng

Arma 3 life scripting help

Recommended Posts

How would I edit this arma 3 life code to allow variables for the item name and the amount of the item given the variables are already called:

 

[true,"cannabis",1] call life_fnc_handleInv;

 

cannabis is the item and 1 is the amount. I know the amount will be easy but i'm unsure how to do the name. My guess would be something like this:

 

[true,"%1",ItemType,amount] call life_fnc_handleInv;

amount being the number of the item and ItemType being the item.

  • Like 1

Share this post


Link to post
Share on other sites

I figured it out, above wont work, use this:

 

[true,ItemType,amount] call life_fnc_handleInv;

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  

×