Jump to content
Sign in to follow this  
alleycat

Add actions to objects

Recommended Posts

I am looking for a way to add addactions to objects and I found this:

useAction=1;
useActionTitle="$STR_ACTION_PUTBOMB";

Where is the action stored for this?

Share this post


Link to post
Share on other sites

AFAIK, it's hardcoded and you can't create your own actions without using addAction.

Share this post


Link to post
Share on other sites

You don't say. Although you can still create a config with an init eventhandler, leads to an addaction, if that makes sense?

Share this post


Link to post
Share on other sites

So is it possible to attach eventhandlers in an objects config.cpp?

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  

×