setdamagable


(Chruker) #1

Hey

I was just looking for a way to restore the health of a brush, which I wanted to function as a shootable trigger. Any pointers on how to do that?

Well I stumbled over the setdamagable script command. A forum search only revealed a post by sock about what they were thinking about putting in the ET documentation.

Tank related commands
setdamagable <targetname> <0|1>
Set damagable status of target entity.

I thought I’d seen a map where it was used, but a search of the 6 ET maps gave nothing. Then it suddenly came to me, does this script command set who can inflict damage on a target? It sound like it. Does anybody know for real?

It would make a fun map if two teams both could have the tank/truck/boat, and the only way for the opposing team to stop them would be to destroy the tank, repair it and try to protect it. Sort of a tug-of-war (?).

BTW, is anybody doing an escort-the-chair map?

Back to my shootable trigger. I’m currently using a func_explosive with a health key of 9999. In the ‘pain’ event part of the script I use ‘constructible_health 9999’ to reset the health, and it works.


(Mr_Tickles) #2

I did think about making a tug-o-war map, using a tug like railgun, but I came across a difficulty, the idea was to let the team win who had retrieved the tug into their territory. I didn’t know if you could get the tug to trigger a certain team win depending on it’s position. That was before I started using Radiant, and it’s still beyond my scope as i’m new to it, so i’m not laying claim to anything. Plus it would take me ages to get that done. :slight_smile:

What’s an escort-the-chair map? Isn’t it just like Goldrush, Railgun or Fueldump?


(Chruker) #3

An escort-the-chair map was a joke someone said in another thread. The chairs are quite fragile, and if a noob on the team shoots it the team will loose.

If a Tug-o-war map has a fixed route, ie. a railway track. You could just say that from spline xx and east is axis territory. It could be done I think.