1. Hello, I am new to plugin creation for oxide.

    I have seen SEVERAL LUA examples regarding making a player sleep.
    how do i make a player sleep in C#

    Code:
    function PLUGIN:OnPlayerSleepEnded(player)
           print("TEST")
           return false
    end

    This obviously doesnt work in C#

    Thank you so much for your help
    [DOUBLEPOST=1450009083][/DOUBLEPOST]Also, I must be missing something in my learning.
    Is there some sort of player action reference?
     
  2. Wulf

    Wulf Community Admin

    That will just prevent them from waking up.

    To make the player sleep, use:
    Code:
    player.StartSleeping();
     
  3. Wulf, is there a reference of API calls for player.foo?
     
  4. Wulf

    Wulf Community Admin

    They'd be found in each game's Assembly-CSharp.dll using a decompiler such as JustDecompile. We don't have full docs for what each game provides yet.