Posted by CogKing on February 01, 1998 at 15:39:36:
In Reply to: Not very helpful... posted by Raptor [JiB] on February 01, 1998 at 15:13:58:
> > Let's say i have got an new item for JK. It's a health regenerator.
> > I want it to add 5 health points per second... but only while the player holds down the key assigned to it.
> > If the player releases the key for that item, i want it to stop adding health.
> > any ideas?
> Well, the title says it all, but I'd consider looking in the crossbow cog, as that features a charging feature, which could probably be adapted.
No big deal anyway : start a pulse on activated: and stop it on deactivated:
Make sure to check for nice things like player died, etc. at each pulse :-)
-CogKing