Posted by EV on January 31, 1998 at 01:05:18:
With my very low knowledge of cog files i wrote this. Im sure it should replace a thing at the ghost position. It won't work though. is there a line missing or something?
symbols
thing where_pos desc=where_ghost
template thing_tpl desc=thing_to_replace
int delay=0 desc=time_before_apear
int enemy local
message startup
message pulse
end
#--------------------------------------------------
code
startup:
SetPulse(.2)
enemy = CreateThing(thing_tpl, where_pos);
CaptureThing(enemy);
Return;
pulse:
enemy = CreateThing(thing_tpl, where_pos);
CaptureThing(enemy);
return;
end