[crossfire] destructor archetype?

mwedel at sonic.net mwedel at sonic.net
Sat Jun 17 22:51:14 CDT 2006


> - altar should be extend to accept a 'delay' or event to be triggered

 Arguably, most objects that check for inventory or otherwise operate
should have the ability to specify a delay.

 However, I'm not sure the best way to do it.  The object doing the
checking could be set to have some speed based on the delay, and then
turn it off when it does it action (eg, speed 0.5 basically amounts to a
delay of 2 ticks).

 That basically works, except for checkers that already have a speed and
only check when they get an action (like many teleporters).

 An alternative method would be for the checker to create a force like
object, put it into its inventory and give that the speed.  That force
would then expire at some time, at which point it does the action
(ideally the force has all the info it needs to do operation, so the same
force logic could be used for a bunch of different checkers)





More information about the crossfire mailing list