11-12-2013, 03:29 AM
(This post was last modified: 11-12-2013, 03:30 AM by SamJBarney.)
How about having the Player handle the ownership? You could have the player update a flag that notifies the wolf that it needs to change to a different state, and then when the player exits, you don't have to worry about a dangling pointer.
This also means that you wouldn't have to add a tick delay or any extra code like that.
This also means that you wouldn't have to add a tick delay or any extra code like that.