How would i go about making all props in game breakable. And then 40 minutes later, not breakable again. Pretty much all i need is a simple script that can do that, or give me some good places to go for a tutorial or something. the wiki had this: MyEntity:SetHealth(1) But that doesn't set all props in game breakable. Thanks!
EDIT: Also, is there a function or something that will make a weapon override godmode? I need it just for admins. Thanks again, you guys are a huge help.
For the godmode thing, instead of making bullets that do damage just directly use self.Owner:GetEyeTrace().Entity:SetHealth(whatever).
Won't that just 'set' the players health to what ever is specified?
[QUOTE=TopgunZX;16915419]Won't that just 'set' the players health to what ever is specified?[/QUOTE]
Get the hp first, then subtract from the current hp.
Awesome, thanks!
Anyone know anything about the breakable props function?
simple prop damage, it have some bugs (like if it can't find physics object or something like this it will remove hook and it will stop work)
That is exactly what i need, but when i press 'download' i get an XML error. Is there an alternative site?
Sorry, you need to Log In to post a reply to this thread.