User talk:Yosef Enoch

From Second Life Wiki
Revision as of 13:39, 17 July 2009 by Strife Onizuka (talk | contribs) (Created page with '== llGetObjectDesc == I saw your addition to llGetObjectDesc, but I'm not sure what you mean by it. Could you provide an example of this? Are you saying that: <lsl>default{...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

llGetObjectDesc

I saw your addition to llGetObjectDesc, but I'm not sure what you mean by it. Could you provide an example of this? Are you saying that:

<lsl>default{

   state_entry(){
       llSetObjectDesc("\n");
       llSleep(0.5);
       string v = llGetObjectDesc();
       llOwnerSay(llList2CSV([v == "\n", v == "\\n"]);
   }

}</lsl> Are you saying the above code will say:

  • "Object: 0, 1"

I'm pretty sure it should be saying:

  • "Object: 1, 0"

I can't get inworld right now to test this.

I think you have become a bit confused, escape characters are a feature of the compiler, not the runtime. The compiler is what translates escape codes in string constants in the source code. -- Strife (talk|contribs) 20:39, 17 July 2009 (UTC)