So I was just getting into working with plugins using Oxide and C#, and I was wondering if someone could point me into the right direction on how to force a character to do a specific emote, like surrender. Any advice or point in the right direction would be appreciated.
Force player into emote?
Discussion in 'Hurtworld Development' started by Grokeezy, Jan 15, 2016.
-
I am not sure if thats a thing possible on serverside, but ill take a look when I am at home. Use a .NET Decompiler to decompile the Assembly-CSharp.dll you find in your server folder. There you can search for stuff you want.
-
And I ended up figuring it out immediately after posting, sorry for post but for anyone interested in the future, this is all you need to do:
Code:EmoteManagerServer emTest = session.WorldPlayerEntity.GetComponent<EmoteManagerServer>(); emTest.BeginEmoteServer(EEmoteType.Surrender);
-
-
Would be cool to see that as a Police system