aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/Bot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tools/pCampBot/Bot.cs')
-rw-r--r--OpenSim/Tools/pCampBot/Bot.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/OpenSim/Tools/pCampBot/Bot.cs b/OpenSim/Tools/pCampBot/Bot.cs
index f7af26e..27c086e 100644
--- a/OpenSim/Tools/pCampBot/Bot.cs
+++ b/OpenSim/Tools/pCampBot/Bot.cs
@@ -318,6 +318,30 @@ namespace pCampBot
318 } 318 }
319 } 319 }
320 320
321 /// <summary>
322 /// Sit this bot on the ground.
323 /// </summary>
324 public void SitOnGround()
325 {
326 if (ConnectionState == ConnectionState.Connected)
327 Client.Self.SitOnGround();
328 }
329
330 /// <summary>
331 /// Stand this bot
332 /// </summary>
333 public void Stand()
334 {
335 if (ConnectionState == ConnectionState.Connected)
336 {
337 // Unlike sit on ground, here libomv checks whether we have SEND_AGENT_UPDATES enabled.
338 bool prevUpdatesSetting = Client.Settings.SEND_AGENT_UPDATES;
339 Client.Settings.SEND_AGENT_UPDATES = true;
340 Client.Self.Stand();
341 Client.Settings.SEND_AGENT_UPDATES = prevUpdatesSetting;
342 }
343 }
344
321 public void SaveDefaultAppearance() 345 public void SaveDefaultAppearance()
322 { 346 {
323 saveDir = "MyAppearance/" + FirstName + "_" + LastName; 347 saveDir = "MyAppearance/" + FirstName + "_" + LastName;