Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Makopo
Created November 16, 2017 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Makopo/43471af47f7c5433e059cb85c4c9b2b4 to your computer and use it in GitHub Desktop.
Save Makopo/43471af47f7c5433e059cb85c4c9b2b4 to your computer and use it in GitHub Desktop.
Qiita Corrade入門その2記事 「APIの入手」まで
default
{
touch_start(integer num_detected)
{
llOwnerSay("ボットアバターを座らせます");
llInstantMessage(CORRADE,
wasKeyValueEncode(
[
"command", "relax",
"group", wasURLEscape(GROUP),
"password", wasURLEscape(PASSWORD)
]
)
);
state on_the_ground;
}
}
state on_the_ground
{
touch_start(integer num_detected)
{
llOwnerSay("ボットアバターを立たせます");
llInstantMessage(CORRADE,
wasKeyValueEncode(
[
"command", "stand",
"group", wasURLEscape(GROUP),
"password", wasURLEscape(PASSWORD)
]
)
);
state default;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment