mirror of
https://github.com/TechplexEngineer/plexview.git
synced 2026-07-28 06:22:14 +00:00
I wish I could figure out how to have PlexVie be out of the LibOMV tree but its just not working die to a DLL not found exception about libopenjpeg. (Yes the dll is in the bin folder) This will do for now
35 lines
886 B
C#
35 lines
886 B
C#
using System;
|
|
using OpenMetaverse;
|
|
|
|
namespace OpenMetaverse.TestClient
|
|
{
|
|
public class CrouchCommand : Command
|
|
{
|
|
public CrouchCommand(TestClient testClient)
|
|
{
|
|
Name = "crouch";
|
|
Description = "Starts or stops crouching. Usage: crouch [start/stop]";
|
|
Category = CommandCategory.Movement;
|
|
}
|
|
|
|
public override string Execute(string[] args, UUID fromAgentID)
|
|
{
|
|
bool start = true;
|
|
|
|
if (args.Length == 1 && args[0].ToLower() == "stop")
|
|
start = false;
|
|
|
|
if (start)
|
|
{
|
|
Client.Self.Crouch(true);
|
|
return "Started crouching";
|
|
}
|
|
else
|
|
{
|
|
Client.Self.Crouch(false);
|
|
return "Stopped crouching";
|
|
}
|
|
}
|
|
}
|
|
}
|