User Tools

Site Tools


crpl:docs:setunitattribute

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
crpl:docs:setunitattribute [2013/01/14 19:00] – created chanicrpl:docs:setunitattribute [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-TODO+ 
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#unit_commands|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 [[crpl:docs:getunitattribute#unit_constants|Unit Constants in GetUnitAttribute]] for a list of attribute commands. 
 + 
 +=== Examples === 
 +<code> 
 +# Set the max AC ammo of the current unit.  
 +Self CONST_MAXAMMOAC 10 SetUnitAttribute 
 +</code> 
crpl/docs/setunitattribute.1358190018.txt.gz · Last modified: 2025/02/14 14:56 (external edit)