This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 4rpl:commands:applytodamagemap [2024/02/18 20:05] – [Examples] Added copy and paste preset. Vertu | 4rpl:commands:applytodamagemap [2025/08/23 17:51] (current) – old revision restored (2024/02/18 20:07) virgilw | ||
|---|---|---|---|
| Line 29: | Line 29: | ||
| <code 4rpl> | <code 4rpl> | ||
| ApplyToDamageMap(self < | ApplyToDamageMap(self < | ||
| + | |||
| + | #Since the damage was associated with a unit, no need to remove it. | ||
| + | #If you need to remove all damage associated with a unit prior to | ||
| + | #the destruction of the unit, call RemoveUnitDamageMap. | ||
| + | </ | ||
| + | |||
| + | <code 4rpl> | ||
| + | ApplyToDamageMap(-1 < | ||
| :Destroyed | :Destroyed | ||
| - | # | + | # |
| - | | + | |
| </ | </ | ||
| + | |||
| <code 4rpl> | <code 4rpl> | ||
| ApplyToDamageMap(self < | ApplyToDamageMap(self < | ||
| #Using a DAMAGE Initial Variable, we multiply it by 1,000,000 to keep it scaled to real values of Creeper depth. | #Using a DAMAGE Initial Variable, we multiply it by 1,000,000 to keep it scaled to real values of Creeper depth. | ||
| - | :Destroyed | ||
| - | # | ||
| - | | ||
| </ | </ | ||
| ==== Presets ==== | ==== Presets ==== | ||
| <code 4rpl> | <code 4rpl> | ||
| - | ApplyToDamageMap(self <-target.x <-target.z <-RADIUS <-DAMAGE 1000000 * false) | + | ApplyToDamageMap(< |
| </ | </ | ||
| < | < | ||