User Tools

Site Tools


prpl:destroyunit

<- PRPL reference <- Everything Else 2

DestroyUnit

ArgumentsResultNotation
UID, Mode [ UID Mode - ]

Description

Destroys the Unit of the UID it receives, and what to play when destroyed. Modes:

     0 - Nothing
     1 - Explosion Effect
     

Note: This terminates script execution immediately if the Core carrying a script destroys itself. No statement after DestroyUnit will execute.

Editors note: Testing indicates that this command does not produce a result. This page has been updated to reflect that.

Examples

	i2 = GetIntFromStack(); //mode 
	i1 = GetIntFromStack(); //UID 

        Self 0 DestroyUnit //Destroys itself without effects
        Self 1 DestroyUnit //Destroys itself while creating an explosion effect
prpl/destroyunit.txt · Last modified: 2016/12/21 18:38 by GoodMorning