~~NOTOC~~
<=[[4rpl:start| Index]]
* [[4rpl:commands:GetObjActive|Get]]
* [[4rpl:commands:SetObjActive|Set]]
====== SetObjActive ======
SetObjActive(<-Unit "ObjName" <-isActive)
===== Description =====
Sets the active state of the obj.
:WARNING: Should the unit be under construction and is built while an object is inactive, that object will retain the unbuilt texturing and color. To prevent this, only set an object to be inactive after the unit is built. Until it is built, hide it via [[4rpl:commands:setobjscale|SetObjScale]] (by making it extremely small).
===== Examples =====
SetObjActive(self "Arm" true)
<=[[4rpl:start| Index]]