I'd like to make patch spiders hide if the ship takes armor damage and have a countdown available to the player, something like what happens with an irradiated ship, so the player knows how long the spiders will be hidden before they can emerge again.
I'm thinking of using something like this:
Code: Select all
(setq countdown 120)
Code: Select all
<OnUpdate>
(block Nil
(setq countdown (subtract countdown 1))
; do something to let the player know how the countdown is progressing
(if (leq countdown 0)
; let the patch spiders know they can come out again
)
)
</OnUpdate>