SetThingPulse


Sets a pulse for a thing. A thing pulse acts like a regular pulse but will end when the thing dies. Only the thing's class or capture cog can set a thing pulse. The thing will become the sender of the pulse message. Syntax:

SetThingPulse(thing, flex_delay);

To stop the thing pulse, use:

SetThingPulse(same_thing, 0);

SetThingPulse() provides a way to have more than one pulse in a cog - this was, for a long time, deemed impossible. Of course, all of the pulses would have to use the same message and the associated things would have to be in the level. But those difficulties are easily overcome.