]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/trigger/delay.qc
Merge branch 'master' into Mario/balance
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / delay.qc
1 #ifdef SVQC
2 void delay_use(entity this, entity actor, entity trigger)
3 {
4    setthink(this, SUB_UseTargets_self);
5    this.nextthink = this.wait;
6 }
7
8 void delay_reset(entity this)
9 {
10         setthink(this, func_null);
11         this.nextthink = 0;
12 }
13
14 spawnfunc(trigger_delay)
15 {
16     if(!this.wait)
17         this.wait = 1;
18
19     this.use = delay_use;
20     this.reset = delay_reset;
21 }
22 #endif