|
Bo Siegel
Registered User
Join date: 17 Jan 2007
Posts: 1
|
03-10-2007 11:18
Hi all,
I am new to scripting and I am trying to get an object to give a note card when it is touched. The script I have is basically copied from an example and is as follows...
default { touch_start(integer total_number) { // to give a different inventory item type, // replace "INVENTORY_OBJECT" with "INVENTORY_NOTECARD", etc. llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_NOTECARD, 0)); } }
Whent he object is touched nothing happens.. I am fairly sure I overlooked some easy thing, but can't figure it out... any adivce?
Thanks...
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
03-10-2007 14:22
From: Bo Siegel Hi all,
I am new to scripting and I am trying to get an object to give a note card when it is touched. The script I have is basically copied from an example and is as follows...
default { touch_start(integer total_number) { // to give a different inventory item type, // replace "INVENTORY_OBJECT" with "INVENTORY_NOTECARD", etc. llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_NOTECARD, 0)); } }
Whent he object is touched nothing happens.. I am fairly sure I overlooked some easy thing, but can't figure it out... any adivce?
Thanks... Your code looks ok, check that the script is actually running (check box is checked.) Also check for any error messages being generated.Also check taht the land you are on allows running of scripts.
|