User Tools

Site Tools


prpl:destroyunit

This is an old revision of the document!


<- PRPL reference <- Everything Else 2

DESTROYUNIT

ArgumentsResultNotation
UID, i1 Unit Destroyed [ UID, i1 - Result ]

Description

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

     0 - Nothing
     1 - Explosion Effect

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.1482320239.txt.gz · Last modified: 2016/12/21 06:37 by Oblivion