Re: cog problem


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]

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


Follow Ups:



Post a Followup

Name:
E-Mail:
Subject:
Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]