aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/Bot.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-08-20 17:01:12 +0100
committerJustin Clark-Casey (justincc)2013-08-20 17:01:12 +0100
commit56d1d67a34bbd3e597168ab9bfa43be6a34e580a (patch)
tree562550df47b06c416679cfc286f2f3809fc152b5 /OpenSim/Tools/pCampBot/Bot.cs
parentAdd -connect (-c) switch to pCampbot command line options. (diff)
downloadopensim-SC_OLD-56d1d67a34bbd3e597168ab9bfa43be6a34e580a.zip
opensim-SC_OLD-56d1d67a34bbd3e597168ab9bfa43be6a34e580a.tar.gz
opensim-SC_OLD-56d1d67a34bbd3e597168ab9bfa43be6a34e580a.tar.bz2
opensim-SC_OLD-56d1d67a34bbd3e597168ab9bfa43be6a34e580a.tar.xz
Add pCampbot console commands to sit all bots on ground and stand all bots
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;