|
Piginawig Lock
Person
Join date: 11 Oct 2006
Posts: 56
|
03-25-2007 17:25
Hello, I currently have a script so that when you walk onto a parcel of land it says "Object creation enabled" if you can make objects. But, I can not figure out how to make it say "Object creation disabled" if you are on no-object land. Can anyone help me? Oh yeah here it the script I am using: default { state_entry() { llSetTimerEvent(.01); } timer() { if (PARCEL_FLAG_ALLOW_CREATE_OBJECTS & llGetParcelFlags (llGetPos ())) { llOwnerSay("Object creation enabled"  ; } } }
|
|
nand Nerd
Flexi Fanatic
Join date: 4 Oct 2005
Posts: 427
|
03-25-2007 17:38
default { state_entry() { llSetTimerEvent(.01); } timer() { if (PARCEL_FLAG_ALLOW_CREATE_OBJECTS & llGetParcelFlags (llGetPos ())) { llOwnerSay("Object creation enabled"); } else { llOwnerSay("Object creation disabled"); } } }
Since you have two possibilites (enabled or disabled) an IF, ELSE statement is possible.
_____________________
www.nandnerd.info http://ordinalmalaprop.com/forum - Ordinal Malaprop's Scripting Forum
|
|
Piginawig Lock
Person
Join date: 11 Oct 2006
Posts: 56
|
03-25-2007 18:42
Thank you so much! I knew it had to be something simple, but I didn't know it was going to be that simple. Thanks for helping a noob scripter, haha.
|