Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] + [Matrix1Utils] Function Parsing

Author
Message
Indicium
15
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 28th Dec 2010 02:16
Pass any function to the parse_function() command, and it will run it with the integer parameters you provide. You must make sure the function returns a value, even if you don't need a value returned from it. Just end it with endfunction 1. This could be useful for scripting, although I'm not sure how fast it would be, but I plan on using it for a gui system, to check if a gui asset should be active, what action it should perform, etc.



GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 28th Dec 2010 23:38
Seems relatively simple...

BTW, since you are using Matrix already, why not use intval() instead of int(val()) ?

Indicium
15
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 31st Dec 2010 03:03
I wasn't aware of the command, thanks

Login to post a reply

Server time is: 2024-04-19 00:23:50
Your offset time is: 2024-04-19 00:23:50