Page MenuHomeFeedback Tracker

[Feature Request] New scripting commands to return the unit's current gesture
New, NormalPublic


Follow up to:

Let's say I want my unit to play a gesture if he's not currently playing any (e.g. reload gestures or hand gestures).

Unfortunately, there's currently no way to do this properly.

If all gestures were played through one mod, it is possible to determine the gestures play time, and play the next gesture when "time > gestureTime + initTime". However, if the unit decides to reload, or some other mod interferes, this whole system breaks.

Having getter commands for gestures is extremely useful:

actionTime unit || gestureTime unit
return value: Number - play time of the current gesture (similar to moveTime)

gesture unit
return value: String - current gesture/action that is being played by the unit


Operating System
Windows 7
Feature Request

Event Timeline

Toksa added a subscriber: Toksa.Aug 5 2020, 9:31 AM
Toksa added a comment.Aug 5 2020, 9:35 AM

This would be very useful for scripting mods that use gestures as animations. Because gesture overrides lot of actions in game like reloading and grenade throwing, so there should be better system for detecting them.

DrSova added a subscriber: DrSova.Sep 4 2020, 3:21 PM