#include <define.h>

//#define NAME                    SCRIPT_

#include <command.h>
//#include <ModReact.h>



procedure start;
#include <push.h>
procedure do_stuff;
procedure manholeend;
procedure manhole00;

variable OPEN;


procedure start
begin
	if (script_action == use_proc) then begin
		script_overrides;
		call do_stuff;
	end
end

procedure do_stuff
begin
	OPEN := map_var(local_var(0));
	if (OPEN) then begin
		call manhole00;
	end
end

procedure manholeend
begin
end

procedure manhole00
begin
	move_to(dude_obj, local_var(1), local_var(2));
end