Author Topic: Destroyable bricks like in base raiders  (Read 1385 times)

I'm talking about a brick that has a health like bar,if anybody played base raiders they would know what i mean.
And i need help with coding it because i dont know how can i make a brick that instantly has (for example) a event on it.

There is aBrick Health mod, but you'll have to code a healthbar that reads it's health. You'd also probably want to modify it for your specific need(s). No idea how you'd add events automatically to bricks though through code.
« Last Edit: August 06, 2015, 09:38:06 PM by QuadStorm »

pretty sure there's an addevent function or something
I was messing around with it earlier while trying to get my dungeon generator coded, but it was working weirdly

edit: I was using %brick.addEvent(1, 0, "onBotSpawn", "bot", "changeDataBlock", "No-Jet Player"); for part of it, I think the issues I was having was from trying to generate bot hole bricks, not applying the events
« Last Edit: August 07, 2015, 03:59:09 AM by phflack »

There is aBrick Health mod, but you'll have to code a healthbar that reads it's health. You'd also probably want to modify it for your specific need(s). No idea how you'd add events automatically to bricks though through code.
Thanks