View Single Post
Old 30th December 2003, 06:39 PM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,565
Default Re: Parameters and templates

Hi Dennis,

A new command template was added in AC3D 4.0 - you can use 'argv':

Code:
ac_add_command_full( "cmdname", funcname, 0 , "argv", "pdesc", "desc" );
so your function can be:

Code:
bool funcname(int argc, const char* argv[])
and you handle the parameters yourself.

Andy
Andy is offline   Reply With Quote