Code Snippets LSL

Short texts LSL 🧑‍💻 Code snippets LSL ✍️ Reading lists LSL 👀

一定時間で、他のスクリプトを機能停止させるdemo用スクリプト

integer CST_DEFAULT_SEC = 300; integer _G_remainingTime = CST_DEFAULT_SEC; default { state_entry() { } on_rez( integer _start_param ) { llSetTimerEvent(1.0); } timer() { –_G_remainingTime; llSetText((string)_G_remainingTime + ” sec”,,1.0); if(_G_remainingTime=0;–i){ scritpName = llGetInventoryName(INVENTORY_SCRIPT,i); if( scritpName != meName ){ llOwnerSay(“stop ” + scritpName); llSetScriptState(scritpName,FALSE); } } llOwnerSay(“demo end”); llSetText(“demo end”,,1.0); } } changed (integer _change) { if (_change […]