Jump to content

Need help with mod (custom hat script) only for one player)


Recommended Posts

On 7/27/2021 at 5:06 PM, Dantekris2013 said:

Hi. I had a question related to "is it possible to make - only its owner could take his custom hat from the ground?" Like Woody's ax. I will be glad for any help, In addition, you can help for real money if know script.

 check this this should have something like that

 

  • Like 1
Link to comment
Share on other sites

If what you're looking to do is replicate what Lucy the Axe can do, then look no further than the possessedaxe component.  It handles the dropping action you want as well as the attachment to a specific player.

You'll want to copy-paste it into your mod's components and edit it to fit your needs as it does have some hardcoded things like the IsValidOwner function using the "woodcutter" tag.  In fact this component could be handled more generic like with a rework for any general item with little effort.

Link to comment
Share on other sites

On 8/2/2021 at 8:42 AM, CarlZalph said:

If what you're looking to do is replicate what Lucy the Axe can do, then look no further than the possessedaxe component.  It handles the dropping action you want as well as the attachment to a specific player.

You'll want to copy-paste it into your mod's components and edit it to fit your needs as it does have some hardcoded things like the IsValidOwner function using the "woodcutter" tag.  In fact this component could be handled more generic like with a rework for any general item with little effort.

Oh thank you! It really help and now all work fine. )
 

 

On 8/1/2021 at 11:35 AM, AkaiNight said:

can you post the logs

It;s ok now. It work. Thank you for help too!

Link to comment
Share on other sites

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
 Share

×
  • Create New...