Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Looking for samples of....

Krazzora Zaftig
Do you have my marbles?
Join date: 20 Aug 2005
Posts: 649
11-25-2005 14:14
Looking for sample scripts of the following items but can't find them. Are there any out there? can anyone point me to something that might help understand thses items if not?

Multi-view texture viewer (to show more then one texture at a time)
Sim status script
Avatar radar
Flight assist
_____________________
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
11-25-2005 23:13
From: Krazzora Zaftig
Looking for sample scripts of the following items but can't find them. Are there any out there? can anyone point me to something that might help understand thses items if not?

Multi-view texture viewer (to show more then one texture at a time)
Sim status script
Avatar radar
Flight assist


Someone helped me out with my combat sim by posting a "passive" avatar radar (that is, it updates the targets when you ping the area, as opposed to an auto-update). I believe it can be found here. I have a tweaked beta version of this if you wish to contact me in game.
Padraig Stygian
The thin mick
Join date: 15 Aug 2004
Posts: 111
11-26-2005 16:13
This is the simplest sim stats script I could whip up. :) It doesn't do much, but it'll give you the FPS and the Time Dilation of whatever sim it's in -- and it updates everything on every cycle so it works just as well in a HUD attachment.
CODE

//This is the delay between scans, in seconds. You can change this.
float delay = 5.0;

//Don't change these.
string name;
string fps;
string timeD;
default
{
state_entry()
{
llSetTimerEvent(delay);
}
timer()
{
name = llGetRegionName();
fps = (string)llGetRegionFPS();
timeD = (string)llGetRegionTimeDilation();
llSetText("Region: " + name + "\nFPS: " + fps + "\nTime Dilation: " + timeD, <1,1,1>, 1);
}
}
_____________________
(You): Aww! My pants won't rez! Does this texture look okay on me?

Incidental Radio :: Because nothing is by design
Now featuring Torley-tastic technomusic!