We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 186666b commit 77512e3Copy full SHA for 77512e3
1 file changed
Code/Examples/GnomingTimeScript.cs
@@ -11,10 +11,22 @@ public class GnomingTimeScript : Example
11
"""
12
!-- OnEvent Death
13
14
+ # stop if its unknown who died
15
+ # theoretically, this should never happen, but check just in case
16
+ if {VarExists @evPlayer} is false
17
+ stop
18
+ end
19
+
20
+ # stop if death was not caused by a player
21
if {VarExists @evAttacker} is false
22
stop
23
end
24
25
+ # stop if death was a suicide - meaning @evPlayer and @evAttacker are the same player
26
+ if {Overlapping @evPlayer @evAttacker} is true
27
28
29
30
@plr = @evAttacker
31
32
# lower size by .1 when killing someone
0 commit comments