Sign in to follow this  
Dantekris2013

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

Recommended Posts

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.

Share this post


Link to post
Share on other sites
AkaiNight    28
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

Share this post


Link to post
Share on other sites
On 7/29/2021 at 6:36 PM, AkaiNight said:

 check this this should have something like that

 

Oh yes. It seems what I want to do. But this code crash server then.

Share this post


Link to post
Share on other sites
CarlZalph    5107

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.

Share this post


Link to post
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!

Share this post


Link to post
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
Sign in to follow this