KMGameplayRoom - Qkrisi/ktanemodkit GitHub Wiki

KMGameplayRoom

[DisallowMultipleComponent]
public class KMGameplayRoom : KMRoom

Add this component to a prefab to allow it to be used as a room during gameplay (i.e. bomb defusal).


public Transform AlarmClockSpawnNonVR;

Transform to spawn the alarm clock at when not in VR mod. Best to ensure this is in view of the camera at all times.


public Transform AlarmClockSpawn;

Transform to spawn the alarm clock at when in VR.


public GameObject BombPrefabOverride;

Use this if you want to specify a particular bomb to use in this room.


public KMGameplayLightChange OnLightChange;

Delegate that gets called when the lights in the room turn on or off.

Delegate signature: delegate void KMGameplayLightChange(bool on)