Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

lweapon->Tile when set in an item script does nothing.

1 replies · 2,696 views · Started 10 October 2013

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.

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...