Hello guys, i would like to know if this is possible to detect the next functions:
1.detect Sign ID While the player is looking at it "and sees the press key to edit" [Sloved]
2.detect if a area is covered with a ToolCupboard [Sloved]
3.Detect a an item inside player's inventory and the amount of it [Sloved]
4.Detect a chest ID and inside inventory
5.every player to have self stats for weapons
6.Extend Magazine capacity on weapons
Thats all for now
Thanks to who ever helps me out![]()
Knowledge needed
Discussion in 'Rust Development' started by Extzy, Jul 10, 2015.
-
1. Dont know
2. Yes check plugin named "Twig Remover"
3. You
robably: can detected an item inside player's
inventory but not sure about the amount.
For more help you will have to wait for someone who knows more things than me
-
np thank you anyways
-
Calytic Community Admin Community Mod
1. You can detect the distance between the players eyes and the sign target with Unity Raycast
2. You can check player.CanBuild for cupboard privilege
3. You can use ItemContainer.GetAmount(int itemid, bool onlyUsableAmounts) -
Thank you for the replay.
about 1.is it possible to detect Which Sign ID is the player looking at besides the distance?
or customize each sign with ID which ill give it by looknig at it ?Last edited by a moderator: Jul 10, 2015 -
Look at the SignArtist mod, I assume it uses Raycast to determin if the user is close enough and looking at a sign.
-
Bumpers
