The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Give Prop Damage?
Shadowfied Offline
Senior Member

Posts: 261
Threads: 34
Joined: Jul 2010
Reputation: 5
#1
Give Prop Damage?

I want to make a script where you break a door with an axe, not in the inventory but you lift it up and hit the door, so when I got the idea, my thoughts was to make a script when the axe collide with the door, it subtracts for example 20 of the doors health, so after a few hits it would be 0. There is a function called AddPropHealth but there doesn't seem to be one of for the opposite. I tried using AddPropHealth and using -20 for the value but that doesn't work.

I appreciate any tips on making this script, and even if there are better ways to make a script like this, I would still like to know if there is a way to subtract health from a prop.

Sorry for posting so many questions by the way, but thanks for answering them.

Thanks in advance.

Current - Castle Darkuan
Other - F*cked Map
01-21-2012, 05:33 PM
Find


Messages In This Thread
Give Prop Damage? - by Shadowfied - 01-21-2012, 05:33 PM
RE: Give Prop Damage? - by flamez3 - 01-21-2012, 05:40 PM
RE: Give Prop Damage? - by Shadowfied - 01-21-2012, 05:42 PM
RE: Give Prop Damage? - by Streetboat - 01-21-2012, 05:53 PM
RE: Give Prop Damage? - by Shadowfied - 01-21-2012, 06:04 PM
RE: Give Prop Damage? - by Your Computer - 01-21-2012, 06:17 PM
RE: Give Prop Damage? - by Your Computer - 01-21-2012, 05:59 PM
RE: Give Prop Damage? - by Streetboat - 01-21-2012, 07:11 PM
RE: Give Prop Damage? - by Shadowfied - 01-21-2012, 07:15 PM



Users browsing this thread: 1 Guest(s)