UnawarePresence Posted October 20, 2009 Ive been editing for some time now, but what is TNT1? As in:object RicochetBullet { frame TNT1 { light BPUFF1 } } 0 Share this post Link to post
Graf Zahl Posted October 20, 2009 TNT1 is an invisible placeholder sprite that was invented by Boom. 0 Share this post Link to post
UnawarePresence Posted October 20, 2009 So its sort of like NULL? And do I need a sprite called TNT1 to use it? 0 Share this post Link to post
Patrick Posted October 20, 2009 It is pretty much the same as null, and no you don't need a sprite for it. 0 Share this post Link to post
Gez Posted October 20, 2009 UnawarePresence said:So its sort of like NULL? And do I need a sprite called TNT1 to use it? The difference with NULL is that TNT1 really "exists" as far as the code goes. It's a special case treated as invisible. NULL isn't a special case, it's only invisible because you don't provide sprites for it; but if you did, it'd show. Here's an example where using NULL instead of TNT1 is a bad idea: ZDoom uses the sprite from the first frame of the spawn state to guess if an actor's sprites are present or not. If it's TNT1, it'll know that it's invisible, so it'll count as present. If it's NULL, however, it'll look for the NULL sprites, won't find them, and will instead spawn an error marker. 0 Share this post Link to post