1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
### OP Sword
id=121
name=OP Sword
group=weapon
icon=gfx\crystalblade.bmp
model=gfx\crystalblade.b3d
scale=1.6
behaviour=blade
mat=metal
weight=0
rate=300
damage=12500
info=You shoudn't have this!
healthchange=0
script=start
on:impact {
if (impact_class()>0){
if (impact_id()>0){
freestate impact_class(),impact_id(),"invulnerable";
}
}
}
on:attack2 {
event "iskill_fish","global";
event "iskill_wood","global";
event "iskill_plant","global";
event "iskill_hunt","global";
event "iskill_dig","global";
}
script=end
but i get an error message in the console when I hit a destructible object, so how do I fix this. other than that, it works just fine!