Graham Mills wrote: ↑Wed Jun 29, 2022 3:13 pm
It's possible that there is some issue with Active-NPC or your object. The demo for this function works OK.
http://opensimulator.org/wiki/OsNpcTouch
Just pop the script in a prim, touch it and then the NPC does the rest (random prim colour changes).
Thank you Graham, but i get the NPC to touch my prim, thats is not the problem.
In the script i let it tell its touched (to verify). Then the script sends a command to restart that Active-Npc (another object).
When my NPC touches it, it only says "touched" but it does NOT reset the Active-Npc.
Edit: if i in local chat command the A-NPC to reset, it does. If another person says same command it replies "[08:52] ActiveNPCs: Denied access to xxxxx". But since Ilan says "Scripts use the Owner permissions." i am wondering why my script isnt "allowed" to reset the A-NPC... does it count the "toucher" as owner in this case, instead of me as creator
Edit 2: lets pretend my command to reset A-NPC is to say "/54 resetanpc"
if i say this in local it resets. if anyeone else says the same it responds "Denied access.."
So, my simple touch prim script would be like this:
default
{
touch_start(integer n)
{
llSay(0, "starting reset");
llRegionSay(54, "resetanpc");
}
}
..but above does not work.. and my *guess* is that it has denied access...