From the manual
//////
execute (STRING* command)
Executes an engine function or variable assignment from a character sequence. Can be used to alter variables or object parameters during gameplay.
Parameters:
command - STRING* or char* pointer that contains an engine function or variable assignment.
Remarks:
LC Under lite-C the function uses the C-Script interpreter. It can only be used for calling engine functions with engine variables, and has no access to functions or variables of the script. For altering script variables, use var_for_name.
Don't enter the execute function in a command string to itself.
Examples:
execute("ent_bonerotate(player,"bone1",vector(10,0,0))");
execute("camera.clip_far = 20000");
...
function console()
{
inkey(exec_buffer);
if (13 == result) // terminated with RETURN?
{
execute(exec_buffer); } // executes the string
}
}
///////////////////////////
Now go forth and be fruitful!