User Tools

Site Tools


4rpl:commands:setunitstuncount

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:setunitstuncount [2021/05/13 15:52] – created Karsten754rpl:commands:setunitstuncount [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 11: Line 11:
 :!: Available in version 1.9 and later. :!: Available in version 1.9 and later.
 ====== SetUnitStunCount ====== ====== 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 =====
 +<code 4rpl>
 +SetUnitStunCount(self 180) #stun unit for 180 frames (6 seconds)
 +</code>
  
-:!: To be added  
  
  
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
4rpl/commands/setunitstuncount.1620921173.txt.gz · Last modified: 2025/02/14 14:56 (external edit)