forked from olie304/UnturnedScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
KillVolume.cs
59 lines (52 loc) · 1.1 KB
/
KillVolume.cs
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using UnityEngine;
using SDG.Unturned;
namespace SDG.Framework.Devkit
{
// Instantly kills anything inside of the BoxCollider on the base Game Object
// BoxCollider must have 'isTrigger' set to True
// Game Object Layer is set to 30 at runtime and cannot be overriden
public class KillVolume : MonoBehaviour
{
public bool killPlayers;
public bool killZombies;
public bool killAnimals;
public bool killVehicles;
public EDeathCause deathCause;
}
}
namespace SDG.Unturned
{
public enum EDeathCause
{
BLEEDING,
BONES,
FREEZING,
BURNING,
FOOD,
WATER,
GUN,
MELEE,
ZOMBIE,
ANIMAL,
SUICIDE,
KILL,
INFECTION,
PUNCH,
BREATH,
ROADKILL,
VEHICLE,
GRENADE,
SHRED,
LANDMINE,
ARENA,
MISSILE,
CHARGE,
SPLASH,
SENTRY,
ACID,
BOULDER,
BURNER,
SPIT,
SPARK
}
}