Hi,
Just trying to track down the hooks for the spraycan. Could you please let me know what they are?
Spraycan hook
- 1
- 2
In particular, trying to target the action when the player right clicks the spray can on an object to re-skin it
It's important to note that most of the recently added hooks may not be documented yet. In this case, I recommend using a decompiler like dnSpy to look for Interface.Oxide.Call usages within the .dll files of the server rather than relying solely on the documentation. This can provide a more comprehensive understanding of the available hooks and their usage.
In your case, you're probably looking for the following hooks:
- object OnEntityReskin(BaseEntity entity, ItemSkinDirectory.Skin skin, BasePlayer player)
- void OnEntityReskined(BaseEntity entity, ItemSkinDirectory.Skin skin, BasePlayer player)
Thank you. I tried those two but the first one only works after you skin an item, the second does not appear to work at all
Does anyone know the spray can hooks? I've tried the DLL's, can't find anything that activates when right clicking the spray can on an object to skin.
chuckyauDoes anyone know the spray can hooks? I've tried the DLL's, can't find anything that activates when right clicking the spray can on an object to skin.
The right click on the object with the spray can is client sided you would need to use other methods to tell if there clicking
https://umod.org/documentation/games/rust
Is this what ya trying to do
https://www.youtube.com/watch?v=cT3vvtnBGog
Sorry didn't see your reply. Do you mean listen to the user right clicking? Would that be resource intensive?
Yes, something similar to that plugin. By the looks, you made that plugin! Nice work. Don't suppose you could point me closer to the answer?
Razor
The right click on the object with the spray can is client sided you would need to use other methods to tell if there clicking
https://umod.org/documentation/games/rust
Is this what ya trying to do
https://www.youtube.com/watch?v=cT3vvtnBGog
Hey Razor are you able to help me figure this one out?
What other methods?Razor
The right click on the object with the spray can is client sided you would need to use other methods to tell if there clicking
https://umod.org/documentation/games/rust
Is this what ya trying to do
https://www.youtube.com/watch?v=cT3vvtnBGog
What ya trying to acomplish?chuckyauWhat other methods?
Razor
What ya trying to acomplish?
Looking to alter the GUI that comes up when right clicking the spraycan to reskin items
The gui that comes up is client sided and there for skins on it can not be added.
Razor
The gui that comes up is client sided and there for skins on it can not be added.
Yeah but how do you detect the player has right clicked with the spray can in their hand? There are other plugins doing it?
Ya i linked mine in this thread im assuming ya trying to make somthing to do the same.
https://www.youtube.com/watch?v=cT3vvtnBGog
Yeah something similar, how'd you do that?Razor
Ya i linked mine in this thread im assuming ya trying to make somthing to do the same.
https://www.youtube.com/watch?v=cT3vvtnBGog
- 1
- 2