script for my bomb

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

script for my bomb

Post by At0miC »

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
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

obj

Post by tltrude »

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.
Tom Trude,

Image
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

ok done, thnx tom. :wink:
Post Reply