command

lpc4/lib/doc/efun/command · 573 B

From the archive lpc4.05.14.tar.gz

Download the archive   « Back to the archive contents

NAME
	command - execute a command

SYNTAX
	int command(string str)
	int command(string str,object o)

DESCRIPTION
	Execute str as a command given directly by the player. Any effects
	of the command will apply to the current object, or the object give
	as the optional second argument. Return value is 0 for failure.
	Otherwise, a numeric value is returned, which tells the
	evaluation cost. Bigger number means higher cost. The evaluation
	cost is approximately the number of of machine code instructions
	executed.

SEE ALSO
	add_action, enable_commands, disable_commands

Site Stats

Snippets: 1791
Codebases: 571