I'm trying to make a custom script for a custom bomb:
The player must hold the use buttom for 5 seconds to the trigger, so the custom bomb would be harmless. But if the player stops with holding the use buttom, before the 5 seconds are over, he must start again with 5 seconds.
Could someone give me that piece of script plz?
And if it possible, it would be nice if there would popup a stopwatch.
Thanks
script for my bomb
Moderator: Moderators
obj
If you study the global/obj_dm.scr script you will see it has the stopwatch and timer. In that script it is used to set the bomb, but you should be able to change it to disarm a bomb without much trouble.
