Jump to content

Picking up items.


Recommended Posts

Posted (edited)

EDIT: Looking back I see I posted this in the wrong section, if someone would be so kind to tell how to move/delete a post that would be wicked.

 

 

So in my spare time I'm working on a cowkilling script.

 

244ef266c4.png

 

Now this works up to the part that it attacks a cow. After a kill or when the player is not currently under attack i'd like it to pick up cowhides. Now am I curious as to where my code falters and does not pick up the cowhides either not looted by others or gained from a kill.

 

Cheers,

Chazler

Edited by Chazler
Posted (edited)

Looks like in your getState, the code is never getting past going into the kill case (cause your inventory is rarely full), remember code is run in the order it appears so it cannot get past the kill case (the code you have for looting looks completely correct so just play with the case definitions a bit.

 

 

Edited by Apaec
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...