self.controls.use does not work properly for charging attacks on NPCs/Creatures
Setting self.controls.use to 1 will "charge" the attack, until it is reset to 0, when it will trigger the attack.
When it is set on actors that are not the player, it will attack instantly.
This cannot be cirumvented with turning off AI, or anything else that I can see.
To replicate:
Find an NPC such as a guard
Select it with the console, and enter these commands:
toggleai (make sure to do this so that they won't reset to their normal stance)
luas
types.Actor.setStance(self,types.Actor.STANCE.Weapon)
--Exit the console, and let them draw their weapon
self.controls.use = 1
--Exit the console to let them "charge"
self.controls.use = 0
You will hear a swish, but you won't see them do any swinging,
While self.controls.use == 1, they will be frozen in place.
If they have a marksman weapon such as a bow, they will actually fire, but with the least possible force.
Most creatures appear to work correctly, but humanoids like Golden saints do not.