Hi, I'm new to the development of Oxide plugin in fact today I was trying to create a simple plugin of teleportation in JavaScript just to understand the basics.
I looked to the Docs, they are very exhaustive, but where da hell can I find the list of the methods and variables for any object/entity?
I can't figure out what methods I have to use to teleport a player to me!
Thank you in advance for the anwsers!
List of the objects, methods and variables?
Discussion in 'Rust Development' started by RinoDrummer, Jan 20, 2016.
-
Hello RinoDrummer,
To find anything API related, meaning what Oxide gives you to create plugins, can be found on the Docs. For teleportation for example, it provides you the "ForcePlayerPosition" method. You can call that using rust.ForcePlayerPosition.
If there is anything more game related, you can find that in the Assembly-CSharp.dll file, which is located in your server folder, or in the .zip which you get when downloading oxide. Use a .NET Decompiler like Telerik JustDecompile and open that dll with it. Using the search function of the program, you can search for something by keywords you think stuff is named like, or you search for something special, for example BasePlayer. There you will then see the class and see what variables and methods it has.
Good Luck
