on-rez added for reet, itwas missing when it should of been thre
This commit is contained in:
parent
f60d53c78e
commit
571e324dc7
1 changed files with 16 additions and 0 deletions
|
|
@ -382,6 +382,22 @@ default {
|
||||||
llOwnerSay("✅ Main Controller initialization complete!");
|
llOwnerSay("✅ Main Controller initialization complete!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
on_rez(integer start_param) {
|
||||||
|
llOwnerSay("🔄 Main Controller rezzed - resetting game state...");
|
||||||
|
|
||||||
|
// Re-initialize lockout system
|
||||||
|
gameOwner = llGetOwner();
|
||||||
|
isLocked = FALSE;
|
||||||
|
|
||||||
|
// Re-initialize channels for external communication
|
||||||
|
initializeChannels();
|
||||||
|
|
||||||
|
// Reset the game to ensure clean state when rezzed
|
||||||
|
resetGame();
|
||||||
|
|
||||||
|
llOwnerSay("✅ Main Controller reset complete after rez!");
|
||||||
|
}
|
||||||
|
|
||||||
touch_start(integer total_number) {
|
touch_start(integer total_number) {
|
||||||
key toucher = llDetectedKey(0);
|
key toucher = llDetectedKey(0);
|
||||||
integer idx = llListFindList(players, [toucher]);
|
integer idx = llListFindList(players, [toucher]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue