i have set !(hitinfo.Initiator is Barricade) but if you run into fire pit it seems to still trigger.
Solved Some help with !(hitinfo.Initiator is Barricade)
Discussion in 'Rust Development' started by Ts3hosting, Feb 16, 2017.
-
Wulf Community Admin
If for reason it is a Barricade, then you could exclude it by name.
-
how would i stop it from trigger if not player or animal? i thought if (hitinfo.Initiator is Barricade) return;
-
Wulf Community Admin
-
if (!(hitinfo.Initiator is BasePlayer ) || !(hitinfo.Initiator is BaseEntity)) return; seems to work now.