Home   Help Search Login Register  

Author Topic: Self repairing crates and med-tents  (Read 542 times)

0 Members and 1 Guest are viewing this topic.

B-2-0

  • Guest
Self repairing crates and med-tents
« on: 24 May 2003, 15:02:42 »
How can i make ammo crates and med-tents self repair if they are blown up or drove over?

Thanx in advance :)

Knut Erik

  • Guest
Re:Self repairing crates and med-tents
« Reply #1 on: 24 May 2003, 16:11:08 »
Hmm. You could try this.
Goes in the INIT field of the tent/AmmoCrate


This addEventHandeler ["Killed" , {This setdammage 0}]
This addEventHandeler ["Hit" , {This setdammage 0}]


Does it work  :-\

deaddog

  • Guest
Re:Self repairing crates and med-tents
« Reply #2 on: 24 May 2003, 16:14:40 »
Use a repeating trigger:

activation:  none

use "timeout" instead of "countdown" and set min, med, max to 5.  I found if there was no delay then the tent would not always get repaired.  You can adjust the time if you want.

condition: getdammage tentname > .9

on activation: tentname setdammage 0

B-2-0

  • Guest
Re:Self repairing crates and med-tents
« Reply #3 on: 24 May 2003, 17:34:27 »
Hi,
     Sorry Erik, your way doesn't work, DeadDog's does tho! :)

Thanx for both of your replies :thumbsup: