I have been struggling with this and with the documentation.. beating my head on the wall trying to figure what I'm doing wrong...
Then I tried tracing the object that we're "supposed" to be using per the documentation.. "player"..
I started pouring over the code from the github site and finally figured it must be in the "SevenDaysToDiePlugin.cs" file.
So I open it and look....
namespace Oxide.Plugins
{
public abstract class SevenDaysPlugin : CSharpPlugin
{
}
}
..... nothing... heh. Oh and I figure CSharpPlugin is included in an compiled binary dll somewhere.
So.. "player" is not declared anywhere, nor are there instructions to declare it..
What should I do to obtain access to "player" and be able to utilize the hooks and obtain the player's position and teleport? Or when will you release the next working 7dtd Oxide?
I assume this development is on hold while working on the uMod site, so it might be months.
Could someone give me a hint? Would be something like --
public SevenDaysPlayer player;
// check if already loaded in the player manager, if so assign player to that
// else assign new SevenDaysPlayer object.
Would the Rust Oxide source be the best example code? Without looking I assume it has a "RustPlugin.cs" file..
Thanks all...
Roger
Then I tried tracing the object that we're "supposed" to be using per the documentation.. "player"..
I started pouring over the code from the github site and finally figured it must be in the "SevenDaysToDiePlugin.cs" file.
So I open it and look....
namespace Oxide.Plugins
{
public abstract class SevenDaysPlugin : CSharpPlugin
{
}
}
..... nothing... heh. Oh and I figure CSharpPlugin is included in an compiled binary dll somewhere.
So.. "player" is not declared anywhere, nor are there instructions to declare it..
What should I do to obtain access to "player" and be able to utilize the hooks and obtain the player's position and teleport? Or when will you release the next working 7dtd Oxide?
I assume this development is on hold while working on the uMod site, so it might be months.
Could someone give me a hint? Would be something like --
public SevenDaysPlayer player;
// check if already loaded in the player manager, if so assign player to that
// else assign new SevenDaysPlayer object.
Would the Rust Oxide source be the best example code? Without looking I assume it has a "RustPlugin.cs" file..
Thanks all...
Roger