Joined: 07 Feb 2006 Posts: 15 Location: Palermo, Italy
Posted: Sun May 07, 2006 6:14 pm Post subject: (POL2006-01-18 Windows) createscript bug
If I set a createscript on an item and I want to utilize the method .container of the item, it returns error even if the item is in a container (utilizing CreateItemInBackpack())
I was under the impression that you shouldn't try to refer to an item's location in it's create script, as it might not actually BE there, yet. Did something here change from 095 to 096?
Author
Message
Austin POL Developer
Joined: 30 Jan 2006 Posts: 354 Location: San Diego, California
Posted: Sun May 07, 2006 10:36 pm Post subject:
Correct - It isnt guarantee to exist yet. Also, try returning 1 at the end of your script.
Author
Message
Core Essence
Joined: 07 Feb 2006 Posts: 15 Location: Palermo, Italy
Posted: Mon May 08, 2006 5:15 pm Post subject:
With return 1; it's the same thing. However, i think it's better that createscript is activated after complete object creation (before loading control script) and then destroyed with return 0;