RoR2-ChensHelpers

Contains simple and useful helpers for RoR2 mod creators to use. Mainly caters to Chen's mods.

View on GitHub

ChensHelpers

Chen.Helpers.GeneralHelpers.SoundPlayer

SoundPlayer.RegisterKeybind(KeyCode, uint[]) Method

Registers a keybind for a WWise Event that posts the event upon being pressed.
Duplicated EventPosterKeys will be replaced by a later assignment.
Alternative overload that does not use the EVentPosterKey data structure.

public void RegisterKeybind(KeyCode key, params uint[] eventIds);

Parameters

key UnityEngine.KeyCode
The key to be assigned

eventIds System.UInt32[]
Group of Event IDs