corrade-lsl-templates – Diff between revs 29 and 36

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 29 Rev 36
Line 350... Line 350...
350 "corrade", 350 "corrade",
351 configuration 351 configuration
352 ), 352 ),
353 wasKeyValueEncode( 353 wasKeyValueEncode(
354 [ 354 [
355 "command", "autopilot", 355 "command", "walkto",
356 "group", wasURLEscape( 356 "group", wasURLEscape(
357 wasKeyValueGet( 357 wasKeyValueGet(
358 "group", 358 "group",
359 configuration 359 configuration
360 ) 360 )
Line 363... Line 363...
363 wasKeyValueGet( 363 wasKeyValueGet(
364 "password", 364 "password",
365 configuration 365 configuration
366 ) 366 )
367 ), 367 ),
368 "action", "stop", 368 "position", wasURLEscape(
-   369 (string)(
-   370 position + wasCirclePoint(
-   371 (float)wasURLEscape(
-   372 wasKeyValueGet(
-   373 "radius",
-   374 configuration
-   375 )
-   376 )
-   377 )
-   378 )
-   379 ),
-   380 "vicinity", wasCirclePoint(
369 "callback", wasURLEscape(callback) 381 (integer)wasURLEscape(
-   382 wasKeyValueGet(
-   383 "range",
-   384 configuration
-   385 )
-   386 )
-   387 ),
-   388 "duration", "2500"
370 ] 389 ]
371 ) 390 )
372 ); 391 );
373 } 392 }
374 http_request(key id, string method, string body) { 393 http_request(key id, string method, string body) {
375 llHTTPResponse(id, 200, "OK"); 394 llHTTPResponse(id, 200, "OK");
376 if(wasKeyValueGet("command", body) != "autopilot" || 395 if(wasKeyValueGet("command", body) != "walkto" ||
377 wasKeyValueGet("success", body) != "True") { 396 wasKeyValueGet("success", body) != "True") {
378 // DEBUG 397 // DEBUG
379 llOwnerSay("Could not get Corrade to stop, restarting script..."); 398 llOwnerSay("Could not get Corrade to stop, restarting script...");
380 llResetScript(); 399 llResetScript();
381 } 400 }
Line 386... Line 405...
386 "corrade", 405 "corrade",
387 configuration 406 configuration
388 ), 407 ),
389 wasKeyValueEncode( 408 wasKeyValueEncode(
390 [ 409 [
391 "command", "autopilot", 410 "command", "walkto",
392 "group", wasURLEscape( 411 "group", wasURLEscape(
393 wasKeyValueGet( 412 wasKeyValueGet(
394 "group", 413 "group",
395 configuration 414 configuration
396 ) 415 )
Line 411... Line 430...
411 ) 430 )
412 ) 431 )
413 ) 432 )
414 ) 433 )
415 ), 434 ),
-   435 "vicinity", wasCirclePoint(
-   436 (integer)wasURLEscape(
-   437 wasKeyValueGet(
-   438 "range",
-   439 configuration
-   440 )
-   441 )
-   442 ),
416 "action", "start" 443 "duration", "2500"
417 ] 444 ]
418 ) 445 )
419 ); 446 );
420 llSetTimerEvent(1 + 447 llSetTimerEvent(1 +
421 llFrand( 448 llFrand(