removed useless _ folders
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<Solution name="Populate_a_region_with_random_NPC">
|
||||
<Project name="Populate_a_region_with_random_NPC" path="Populate_a_region_with_random_NPC\Populate_a_region_with_random_NPC.prj" active="true"/>
|
||||
</Solution>
|
||||
@@ -0,0 +1,76 @@
|
||||
// :CATEGORY:OpenSim NPC
|
||||
// :NAME:Populate_a_region_with_random_NPC
|
||||
// :AUTHOR:Fritigern
|
||||
// :CREATED:2013-07-30 13:44:43.853
|
||||
// :EDITED:2013-09-18 15:39:00
|
||||
// :ID:638
|
||||
// :NUM:867
|
||||
// :REV:1.0
|
||||
// :WORLD:OpenSim
|
||||
// :DESCRIPTION:
|
||||
//http://opensimulator.org/wiki/User:Fritigern/Scripts#NPC_stuff
|
||||
// touch to create an NPC at a random position in your region.
|
||||
// The NPC will be created at 100m up in the air, just for dramatic effect :-)
|
||||
// Set npcNum to how many NPCs you want.
|
||||
//
|
||||
// License: http://creativecommons.org/licenses/by-sa/2.5/
|
||||
// You are free:
|
||||
// to Share — to copy, distribute and transmit the work
|
||||
// to Remix — to adapt the work
|
||||
// to make commercial use of the work
|
||||
//
|
||||
// :CODE:
|
||||
key npc;
|
||||
|
||||
vector toucherPos;
|
||||
|
||||
integer n;
|
||||
|
||||
integer i;
|
||||
|
||||
integer npcNum = 5;
|
||||
|
||||
integer wait = 0;
|
||||
|
||||
string toucher;
|
||||
|
||||
key toucherkey;
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
|
||||
llSetText("Populate this region",<1,1,1>,1);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
touch_start(integer number)
|
||||
|
||||
{
|
||||
|
||||
toucher = llKey2Name(llDetectedKey(0));
|
||||
|
||||
toucherkey = llDetectedKey(0);
|
||||
|
||||
state raise;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
state raise
|
||||
|
||||
{
|
||||
|
||||
state_entry()
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="Populate_a_region_with_random_NPC" guid="D8F354D8-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D8F355D6-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Populate_a_region_with_random_NPC_1.lsl" guid="D8F371FD-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user