tj72 0 Posted January 8, 2009 I was hoping there was a resource or tutorial around for how to bind scripts to an addon. I have searched but couldnt find. Something like a radio object the player has to get near to gain an action or get a dialogue. I dont have any other specifics I was just wondering if there was a basic guideline to get me going. Share this post Link to post Share on other sites
nikita320106 0 Posted January 19, 2009 may be extended event handlers?? Share this post Link to post Share on other sites
tj72 0 Posted January 19, 2009 Thanks for reply. I guess I will look into O2 and check around the wiki for these guides. It seems like a good topic for sticky since it seems hard to find the info. If I could get working examples of making a simple addon that has scripting builtin I could probably take it from there. Share this post Link to post Share on other sites
poweruser 10 Posted January 19, 2009 Something like a radio object the player has to get near to gain an action or get a dialogue. That yells for a UserAction. It does about the same as the scripting command 'addaction', but with a few more possibilites. Here's a example (2nd code box): http://community.bistudio.com/wiki/Animations The class UserActions goes into your objects class, like this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgVehicles {     class xyz;     class yourObject : xyz {         // bunch of properties         class UserActions {             // define your useractions here         };     }; }; Share this post Link to post Share on other sites