Been working on a mod with the v2 mod engine involving timed handcuffs that adds a whole new minigame. I have a few questions / feature requests (if they're not available yet).
1) Is it possible to get the remaining time left on the timed handcuffs?
Currently I'm running a separate timer that should in theory be in sync with the handcuffs, but in actuality goes out of sync (I think this happens particularly if you change zone). I'd like to either sync to the handcuff timer directly, or at least occasionally update my separate timer if it drifts out of sync.
2) Is it possible to make a player stand up if they're crouched?
This is so I can overcome a weird state where the player is crouching when the handcuffs get locked and end up with the handcuffs applied while they're in crouch state.
3) Could I get a little more documentation on _state.Handcuffs.State / .Type ? i.e. what values these could be? I'd like to know so I can avoid the player doing silly stuff like applying the wrong type of handcuffs behind their back / to an object while my mod is active.
4) Is there a way to detect if a drone mission has been activated or is active? I'd like to react to that, since it'll definitely interfere with the functionality of my mod.
Many Thanks!
1) Is it possible to get the remaining time left on the timed handcuffs?
Currently I'm running a separate timer that should in theory be in sync with the handcuffs, but in actuality goes out of sync (I think this happens particularly if you change zone). I'd like to either sync to the handcuff timer directly, or at least occasionally update my separate timer if it drifts out of sync.
2) Is it possible to make a player stand up if they're crouched?
This is so I can overcome a weird state where the player is crouching when the handcuffs get locked and end up with the handcuffs applied while they're in crouch state.
3) Could I get a little more documentation on _state.Handcuffs.State / .Type ? i.e. what values these could be? I'd like to know so I can avoid the player doing silly stuff like applying the wrong type of handcuffs behind their back / to an object while my mod is active.
4) Is there a way to detect if a drone mission has been activated or is active? I'd like to react to that, since it'll definitely interfere with the functionality of my mod.
Many Thanks!