Files
LSL-Scripts/HyperGrid Story Nine/Nine/Event Horizon Controller/Direction button.lsl
Fred Beckhusen 1ec08494b4 Added files
2015-12-12 16:58:38 -06:00

45 lines
1.0 KiB
Plaintext

// :SHOW:1
// :CATEGORY:NPC
// :NAME:HyperGrid Story Nine
// :AUTHOR:Ferd Frederix
// :KEYWORDS:NPC, controller, console
// :CREATED:2015-11-24 20:25:33
// :EDITED:2015-11-24 19:25:33
// :ID:1087
// :NUM:1839
// :REV:1.0
// :WORLD:OpenSim
// :DESCRIPTION:
// NPC console controller button script
// Goes into 8 buttons in a compass rose configuration
// Controls a pair of NPCS to xap 6 othert NPCs.
// each button gets a different config.
// :CODE:
string E = "<1,0,0>";
string NE = "<1,1,>";
string N = "<0,1,0>";
string NW = "<-1,1,0>";
string W = "<-1,0,0>";
string SW = "<-1,-1,0>";
string S = "<0,-1,0>";
string SE = "<1,-1,0>";
// chose a direction for one of 8 buttons.
default
{
touch_start(integer total_number)
{
llSetLinkPrimitiveParamsFast(llGetLinkNumber(),[PRIM_FULLBRIGHT, ALL_SIDES,TRUE]);
llMessageLinked(LINK_SET,4,S,"");
llSetTimerEvent(0.5);
}
timer()
{
llSetLinkPrimitiveParamsFast(llGetLinkNumber(),[PRIM_FULLBRIGHT,ALL_SIDES, FALSE]);
llSetTimerEvent(0);
}
}