Hello, I am new here so please delete the question if this is the wrong place to ask: My question is. I use a invisible phantom prim on the side of a shipping container and whenever someone enter this prim the floating text changes to "this cargo is adressed to: madscook" for example.
I also want my avatar to be notified whenever this happen and i made this script:
key OtherPersonKey = "avatar key";
default
{
state_entry()
{
llVolumeDetect(TRUE); // Starts llVolumeDetect
}
collision_start(integer total_number)
{
llSetText(" \n Roleplay: Owner of this cargo container \n \n This cargo is addressed to: " + llKey2Name(llDetectedKey(0)), <1 ,1, 0>, 1 );
llInstantMessage(OtherPersonKey, "The cargo container adress now changed to " + llKey2Name(llDetectedKey(0)));
}
}
Now i got some staff at my sim and i want to add multiple avatars keys. I know i can just create a "OtherpersonKey1" but i want to read the keys from a notecard. is there anyone here that can guide me in the right direction. I am a new beginner (as you probably understand) and have never read anything out of a notecard before. I tried to follow this guide: https://www.youtube.com/watch?v=q1J8g9duRbg but the web page it refers to is updated and therefore for a beginner it is hard to know what must be changed. Thanks for any help