Jump to content
Sign in to follow this  
Gonobob

Empty slots in magazines.

Recommended Posts

Hi all,

can anyone help me how to know how many empty slots in player magazines

if empty slots < 6 then "you cant pickup this item" - something like this

thanks, sorry for bad english ;)

Share this post


Link to post
Share on other sites

there is no way to know how many bullets are in a specific magazine as far as I know.

Share this post


Link to post
Share on other sites
there is no way to know how many bullets are in a specific magazine as far as I know.

i dont need to know how many bullits,

i need

if empty slots >= 6 i can add partwheel to player

if empty slots < 6 i cant add partwheel to player

dont know how it make

Edited by Gonobob

Share this post


Link to post
Share on other sites

There is BIS_fnc_InvAdd I think that will add things to inventory and return true or false in no space. Also you can count bullets in magazines.

Share this post


Link to post
Share on other sites

_result = [player,"PartWheel"] call BIS_fnc_invAdd;

hint format ["RESULT: %1",_result];

_result is always true(( dont know why, anyone can help? thx

or any example pls

and where can i find this function BIS_fnc_invAdd?

killzone can u tell me ur skype or icq?

Edited by Gonobob

Share this post


Link to post
Share on other sites

Thanks all, i did to create item under player, not add to backpack.

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  

×