Author Topic: Brick 'Health'  (Read 340 times)

I just need to know how to do this with VCE, like when you chop down a tree you need to hit it a certain ammount of times before it falls.


Code: [Select]
onProjectileHit => Self => VCE_ModVariable => Brick [Hits] [Add] [1]
onProjectileHit => Self => VCE_IfVariable [Hits] == [15]
OnVariableTrue => self => FakeKillBrick
OnVariableTrue => Self => VCE_ModVariable => Brick [Hits] Set [0]