View Full Version : lweapon->Tile when set in an item script does nothing.

10-10-2013, 02:24 AM
I've been messing around with scripting and discovered that lweapon->Tile, when used to set the tile of an LWeapon in an item script, does nothing. I made this discovery while I was investigating why a particular LWeapon, when created, was using sword sprites. I discovered it when I finally figured out that was the problem. Oddly enough, lweapon->UseSprite() works fine in an item script.

12-03-2013, 07:58 PM
It does set the tile, but whether or not it stays that way depends on whether it's animated. It's probably lweapon->OriginalTile you wanted to set.

I'm not sure whether to consider this a bug or not. It works, but not necessarily in a reasonable way...