Cunning fox Posted January 9, 2017 Share Posted January 9, 2017 (edited) Heya! does anyone know how to make trap that works only on, for example, pigs? Edited January 9, 2017 by makar5000 1 Link to comment https://forums.kleientertainment.com/forums/topic/73240-trap-modification/ Share on other sites More sharing options...
Kzisor Posted January 9, 2017 Share Posted January 9, 2017 2 hours ago, makar5000 said: Heya! Is it possible to make trap that works only on, for example, pigs? Anything is possible given enough time and money. Link to comment https://forums.kleientertainment.com/forums/topic/73240-trap-modification/#findComment-856759 Share on other sites More sharing options...
Cunning fox Posted January 9, 2017 Author Share Posted January 9, 2017 21 minutes ago, Kzisor said: Anything is possible given enough time and money. You want me to pay you? 1 Link to comment https://forums.kleientertainment.com/forums/topic/73240-trap-modification/#findComment-856763 Share on other sites More sharing options...
Kzisor Posted January 9, 2017 Share Posted January 9, 2017 Just now, makar5000 said: You want me to pay you? Naw, just a phrase I learned. Instead of asking 'if something is possible', ask 'does anyone know how to do this'; the difference in wording may not seem like much, but in reality anything is possible, just depends on if someone has done it before. Link to comment https://forums.kleientertainment.com/forums/topic/73240-trap-modification/#findComment-856764 Share on other sites More sharing options...
Cunning fox Posted January 9, 2017 Author Share Posted January 9, 2017 2 minutes ago, Kzisor said: Naw, just a phrase I learned. Instead of asking 'if something is possible', ask 'does anyone know how to do this'; the difference in wording may not seem like much, but in reality anything is possible, just depends on if someone has done it before. Oh, ok, I'll eddit it 1 Link to comment https://forums.kleientertainment.com/forums/topic/73240-trap-modification/#findComment-856765 Share on other sites More sharing options...
Kzisor Posted January 9, 2017 Share Posted January 9, 2017 2 hours ago, makar5000 said: Heya! does anyone know how to make trap that works only on, for example, pigs? How do you want the trap to work, like tooth trap or like bird trap? Link to comment https://forums.kleientertainment.com/forums/topic/73240-trap-modification/#findComment-856766 Share on other sites More sharing options...
Cunning fox Posted January 9, 2017 Author Share Posted January 9, 2017 Just now, Kzisor said: How do you want the trap to work, like tooth trap or like bird trap? Tooth trap. Thanks for your time 1 Link to comment https://forums.kleientertainment.com/forums/topic/73240-trap-modification/#findComment-856767 Share on other sites More sharing options...
zUsername Posted January 10, 2017 Share Posted January 10, 2017 local function NewExplode(self) local _Explode = self.Explode self.Explode = function(self, target) if self.inst and self.inst.prefab == "trap_teeth" then if target and target.prefab == "pigman" then return _Explode(self, target) end else return _Explode(self, target) end end end AddComponentPostInit("mine", NewExplode) Tooth trap only pig. Link to comment https://forums.kleientertainment.com/forums/topic/73240-trap-modification/#findComment-856953 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now