Jump to content
Sign in to follow this  
duda123

Detecting when a player's actions have been removed?

Recommended Posts

Anyone know of a way to check if an action you've added via addAction has been removed? (removed by another script using the removeAllActions command)

Share this post


Link to post
Share on other sites

Probably do an isNil check on the actionID?  Or not use removeAllActions if there will be a question about what's being removed.

Share this post


Link to post
Share on other sites

Probably do an isNil check on the actionID?  Or not use removeAllActions if there will be a question about what's being removed.

Unfortunately it's another addon/mission that's doing the removing.

Thinking about adding a player action that keeps track of the last tick time it was evaluated. Then, checking every few seconds, I can tell if the player action has stopped evaluation (has been removed).

As far as I can tell, the action ID variable won't be set to nil when actions are removed.

Too bad there isn't a function to get an action based on an ID...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×