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?
Solved Making a player sleep? (C#)
Discussion in 'Rust Development' started by PhoenixSoftware, Dec 13, 2015.
-
Code:
void OnPlayerSleepEnded(BasePlayer player) { return false }
-
Wulf Community Admin
To make the player sleep, use:
Code:player.StartSleeping();
-
Wulf, is there a reference of API calls for player.foo?
-
Wulf Community Admin