~~NOTOC~~ <=[[4rpl:start| Index]] * [[4rpl:commands:getunitstuncount|Get]] * [[4rpl:commands:setunitstuncount|Set]] :!: Available in version 1.9 and later. ====== SetUnitStunCount ====== SetUnitStunCount(<-unit <-amt) Sets the stun count for a unit. When a unit is stunned the stun count is set to 300. Over time this value decreases automatically and when it is 0, the unit is no longer stunned. You can use this API to change the stun count directly. ===== Examples ===== SetUnitStunCount(self 180) #stun unit for 180 frames (6 seconds) <=[[4rpl:start| Index]]