Jump to content
john123

Pick up items via scroll menu

Recommended Posts

So i am trying to make it so that players are able to pick up items via the scroll menu instead of the windows key. I'm struggling to get the add action string to display what the item is and how many of the item there is. Here is what I have so far.

		life_actions pushBack (player addAction[format ["Pickup %1 (%2)", cursorobject getVariable "item" select 0, cursorobject getVariable "item" select 1], "hint ""Test""", cursorobject,0,false,false,"", 'player distance cursorObject <= 5 && cursorObject isKindOf "Land_Suitcase_F"']);

Result is just Pickup

 

Any help is much appreciated. Cheers 

Share this post


Link to post
Share on other sites

Just diag_log what the output of your getVariables are and see what is actually being returned. Basic debugging should help you figure out what went wrong.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...