Trying make control of horse speed using mouse wheel. So registering new Input:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <modded_inputs> <inputs> <actions> <input name="UADayzHorseSpeedUp" loc="Speed Up" /> <input name="UADayzHorseSpeedDown" loc="Speed Down" /> </actions> <sorting name="DayZ_Horse" loc="DayZ Horse"> <input name="UADayzHorseSpeedUp" /> <input name="UADayzHorseSpeedDown" /> </sorting> </inputs> <preset> <input name="UADayzHorseSpeedUp"> <btn name="mWheelUp" /> </input> <input name="UADayzHorseSpeedDown"> <btn name="mWheelDown" /> </input> </preset> </modded_inputs>
But when in commandhandler of horse trying get mousewheel movement up, its not recognized, but for example vanilla inputs are. Tried also opticzoomin, but also not catched on server.
My code snippet of horse commandhadler:
hic = player.GetInputController(); //rotace kone //inputController.OverrideHeading(true, inputController.GetHeading()+(hic.GetAimChange()[0])); //mWheelUp //mWheelDown Print ("mouse wheel up " + input.SyncedValue_ID(UADayzHorseSpeedUp)); <------------- still show zero float movementX = input.SyncedValue_ID(UAMoveRight) - input.SyncedValue_ID(UAMoveLeft); <--------------- works float maxTurnSpeed = 100.0;