|
Dale Harmison
Registered User
Join date: 26 Dec 2005
Posts: 59
|
04-08-2006 15:50
... that will work. I want to have the script that upon pressin of the object will be able to give out multiple LMs. Is there such thing? Let me know pls cause the one that I have at the moment now workin  Thank you!
|
|
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
|
landmark giver..
04-08-2006 18:14
integer type = INVENTORY_LANDMARK; //change this to whatever type you want to give out.
default { state_entry() { //I like to leave state entry in because if you take it out the script will show up as active on detectors like it's hung or something. }
touch_start(integer total_number) { integer i; for(i = 0;i < llGetInventoryNumber(type); i++) { llGiveInventory(llDetectedKey(0),llGetInventoryName(type,i)); //If this is likely to be in a crowded area you will need another for loop to iterate through the detected keys. This will only function well if it's likely only one person will be clicking at a time. } } }
|