Quote:
Originally Posted by cbk1994
this.ani seems to me to be a much better way to set it; setCharAni was probably kept mostly for compatibility, though I could be wrong. As far as I know, 'this.ani', using commas for parameters, can duplicate the functionality.
|
The fact that you're using commas in a string instead of the parameters of the function proves that that isn't the preferred way to do it. Like I said in my last post, you are reverting back to what made GScript1 a horrible scripting language: The ability to do things you shouldn't be able to. What if you had a filename with a comma in it? Using your method, you'd be screwed.
Anyways, Inverness is right. TGaniObject::ani is supposed to be read-only. Not to mention the fact that it's defined as an "object", not a string.
NPC Code:
TGaniObject (TLevelObject):
ani - object (read only)
Reference:
http://wiki.graal.net/index.php/Crea...nt/TGaniObject