Call a Custom Method with Usable's OnUse()
Posted: Mon Dec 05, 2022 5:17 pm
Hi Tony, thank you so much for this great asset. I am seeing if there is a way to call a method in a c# script I wrote through the Usable component's OnUse()?
For example, if my NPC has a "LookAtPlayer" function that rotates him to the player, how can I call this either through the component, or in code when the Useable component is used?
thanks!
For example, if my NPC has a "LookAtPlayer" function that rotates him to the player, how can I call this either through the component, or in code when the Useable component is used?
thanks!