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

Next revision
Previous revision
4rpl:commands:func_destroyed [2021/01/14 10:31] – created virgilw4rpl:commands:func_destroyed [2024/02/18 15:31] (current) – [Description] Added a clarification note incase any doubt of the note is at hand. Vertu
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
-<=[[4rpl:start| Index]]+<= [[4rpl:start|Index]]
  
-This callback 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.1610638265.txt.gz · Last modified: 2021/01/14 10:31 by virgilw