<- CRPL reference <- Unit Commands

SetUnitAttribute

Arguments Result Notation
Unit UID, Attribute Constant, Value i1 i2 n1 --

Description

SetUnitAtrribute allows you to set various attributes on different units. See Unit Constants in GetUnitAttribute for a list of attribute commands.

Examples

# Set the max AC ammo of the current unit. 
Self CONST_MAXAMMOAC 10 SetUnitAttribute