User Tools

Site Tools


4rpl:commands:destroyunit

Index
Unit

DestroyUnit

DestroyUnit(<-UID <-suppressEffect <-userInitiated <-doNotLog)

Description

Destroys a unit. The three arguments control optional behavior when the unit is destroyed.

  • suppressEffect - If true, suppress the unit explosion effect and sound.
  • userInitiated - If true, will not show up in the destroyed unit timeline on the creeper chart.
  • doNotLog - If true, will not show up in the destroyed unit timeline on the creeper chart and will not contribute to the total units destroyed on the player's score at the end of the map.

Examples

DestroyUnit(<-UID false false false)

Index

4rpl/commands/destroyunit.txt · Last modified: 2021/09/13 18:03 by Grabz