User Tools

Site Tools


4rpl:commands:func_destroyed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:func_destroyed [2021/01/14 15:47] virgilw4rpl:commands:func_destroyed [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
-<=[[4rpl:start| Index]] +<= [[4rpl:start|Index]] 
-":Destroyed" is called when a unit is destroyed.+ 
 +====== :Destroyed ====== 
 + 
 +===== Description ===== 
 + 
 +":Destroyed" is called when a unit with this script is destroyed. 
 + 
 +Clarification note:\\ 
 +When a unit is destroyed via [[4rpl:commands:destroyunit|DestroyUnit]](self true true true), :Destroyed will still trigger. 
 +===== Example =====
  
 <code 4rpl> <code 4rpl>
 :Destroyed :Destroyed
-   trace("I died")+   "I died" Print
 </code> </code>
 +
4rpl/commands/func_destroyed.1610639264.txt.gz · Last modified: 2025/02/14 14:56 (external edit)