Posted by CogKing on January 31, 1998 at 16:15:38:
In Reply to: cog problem posted by EV on January 31, 1998 at 01:05:18:
Be warned that this cog will create 5 things per second, and will cause trouble
real fast (there are limits to the number of things in JK)... The thing you create should have a timer in its template to automatically destroy it after a while.
-CogKing
symbols
thing where_pos desc=where_ghost
template thing_tpl desc=thing_to_replace
int myThing local
message startup
message pulse
end
#--------------------------------------------------
code
startup:
SetPulse(0.2);
Return;
pulse:
myThing = CreateThing(thing_tpl, where_pos);
CaptureThing(myThing);
return;
end