LlRemoteLoadScriptPin
De DigiWiki.
Version du 30 décembre 2014 à 01:50 par Djphil (discuter | contributions)
Script copier
//Copy a script to the second prim integer PIN=1341134; default { state_entry() { llRemoteLoadScriptPin( llGetLinkKey(2), "some script", PIN, TRUE, 0xBEEEEEEF ); } }
Pin setter
Simple script used for setting the pin for a prim, so you can later send scripts to it with llRemoteLoadScriptPin.
//Child Prim PIN setter integer PIN=1341134; default { state_entry() { llOwnerSay(llGetObjectName()+" : "+(string)llGetKey()+" is ready to accept a describer script using the agreed upon PIN."); llSetRemoteScriptAccessPin(PIN); } }
// This example will be of two linked prims default { touch_start(integer total_number) { llGiveInventory(llGetLinkKey(2), "foo"); llRemoteLoadScriptPin(llGetLinkKey(2), "foo", 165, TRUE, 0); } } // What this is does is send the script "foo" and the 'pin' 165 to prim 2 and set the script running when touched. // The receiver script ~/HAS/~ to be in the other prim before you touch it otherwise it will say illegal transfer // The receiver script will have default { state_entry() { llSetRemoteScriptAccessPin(165); } }