LPC Library Functions: command

NAME

command() - execute a command as if given by the object

SYNOPSIS

int command( string str );

DESCRIPTION

Execute the command 'str' for this_object(), as if the player had typed the command in. command() returns a numeric value roughly to the driver's "evaluation cost"; this number is only an approximation. If you need precise benchmarks, try time_expression() instead.

Note that this efun is not available if the driver flag NO_ADD_ACTION is defined.

SEE ALSO

add_action(), enable_commands()

Page design by Frank Jacquette & Tim Hollebeek
Copyright (C) 1998 Tim Hollebeek & Frank Jacquette
Back to MudOS