» Wed Jun 20, 2012 10:36 am
Very nice! Thanks, KC!
Off-topic but relevant: Unfortunately, we don't have a way to detect which controls are disabled/enabled.
I wanted to use Disable/Enable PlayerControls () for another purpose and in another mod but fear that multiple mods that Enable/Disable controls will conflict.
It is just best practice do Enable () anything you Disable (). So, I usually try to first detect if controls are disabled before disabling it.
E.g.: If the controls already are already disabled (from another mod or cut-scene), I don't bother disabling them again - even if it has no effect at that point in time if I do.
However, I only EnablePlayerControls (), if I disabled them.
Imagine if after my need for it is done, so I EnablePlayerControls () but that cut-scene still requires controls to be disabled.
Moral: Only Disable/Enable controls if they are not already Disabled/Enabled. And when finished, undo that if it was your mod that Disabled/Enabled the controls.
SKSE, we need!