General Barron 0 Posted July 14, 2005 If you have ever tried to use the 'onmapsingleclick' command, you'll realize how frustrating it can be for all but the simplest tasks. This script lets you easily 'add' and 'remove' as many commands to it as you want! Click commands can also be set to 'remove' themselves automatically after a number of mapclicks, after a certain amount of time passes, or after a certain condition is met. In addition to the normal parameters passed to the 'OnMapSingleClick' command, you can 'attatch' additional data that will be sent to the code run by the click. See the readme for more information. Also see the demo mission--you might be impressed at how easily new mapclick commands are added and removed! Get it at OFPEC and let me know what you think: http://ofpec.com/editors/resource_view.php?id=850 Share this post Link to post Share on other sites
mcpxxl 2 Posted July 14, 2005 Here we go ;-) Nice tool ! Is it MP compatible ? PS: The color of MP Voting console runs nice now Share this post Link to post Share on other sites
-IT-Q- 0 Posted July 14, 2005 Very useful for certain mp league maps ... its been a pain in the ass in the past... thanks a lot Share this post Link to post Share on other sites
General Barron 0 Posted July 14, 2005 Nice tool !Is it MP compatible ? Thanks for the comments! Glad to hear I wasn't the only one having trouble with this command . It should be MP compatible, as long as all functions are run only on the client that you want to adjust the mapclick for. So, if you've got player A and player B, and you want to change player A's mapclick stuff, you just gotta be sure that you make all your function calls on player A's computer only. Keep in mind that, as with the regular 'onmapclick' command, all code will only be executed on that specific client. This is all untested, but I don't see any reason why it wouldn't work. I'm working on a minor update right now, so I'll try to get a quick LAN going and see the results. I'll also update the readme with MP info. Share this post Link to post Share on other sites
General Barron 0 Posted July 15, 2005 Updated to v1.1 -Added a new parameter to GENB_mapclick_add function--code to be run if the click command is automatically removed. -New parameter passed to click command code--# of clicks remaining. -Updated readme with MP editing info Share this post Link to post Share on other sites
Hawkins 8 Posted July 15, 2005 Brilliant. This should come in handy. Can't test at the moment, at work, but I'll give it a spin as soon as I can. Good work as always GB! Share this post Link to post Share on other sites
KeyCat 131 Posted July 15, 2005 Thanks GB! Will try it out, may come in handy someday... /Christer (a.k.a KeyCat) Share this post Link to post Share on other sites
General Barron 0 Posted October 1, 2005 Updated to v1.2 I'm happy to announce I've added support for 'on map double-click' commands. Unfortunately, you can't double-click too fast, or else the game won't detect the clicks (it will place a marker instead). Also fixed a small bug, improved the layout/commenting of the code, and made the readme a little clearer. Share this post Link to post Share on other sites
csj 0 Posted July 1, 2006 Hate to dig up an oldie but link is down Does someone have working link for this? Share this post Link to post Share on other sites
cobra@pulse 0 Posted July 4, 2006 I know i shouldn't post aswell but this is something i could really do with aswell. Share this post Link to post Share on other sites
General Barron 0 Posted July 5, 2006 Here you go, grab it off of rapidshare: multi mapclick handler v1.22 Let me know if you find it handy; I sure do. Share this post Link to post Share on other sites
csj 0 Posted July 6, 2006 Thanks GB, much appreciated Share this post Link to post Share on other sites
crashdome 3 Posted July 8, 2006 You'll find it here now too : Mirror much less wacky of a webpage Share this post Link to post Share on other sites
General Barron 0 Posted July 8, 2006 You'll find it here now too : Mirror much less wacky of a webpage Ah great! Thanks for the mirror. Share this post Link to post Share on other sites