So I've been having fun with this command:
http://www.mpgh.net/forum/showthread.php?t=1115527 Thanks @
Daemonmann
Code by Daemonmann
internal class VanishCommand : Command
{
public VanishCommand()
: base("vanish", 1)
{
}
protected override bool Process(Player player, RealmTime time, string[] args)
{
if (!player.isNotVisible)
{
player.isNotVisible = true;
player.Owner.PlayersCollision.Remove(player);
if (player.Pet != null)
player.Owner.LeaveWorld(player.Pet);
player.SendInfo("You're now hidden from all players!");
return true;
}
player.isNotVisible = false;
player.SendInfo("You're now visible to all players!");
return true;
}
}
But then I realized it didn't hide you from enemies or god you
I Havent researched into how commands work since I'm working on a lot of behaviors. I did spend about an hour or two on trying to add Condition Effect invulnerable and invisible.
I coded it but i saw in VS15 that the vanish command was unreachable but the god and invisible worked.
Basically what im asking, could someone do that for me or teach me how commands work?