Author Topic: Fakekill  (Read 862 times)

Hello, I was wondering what is the function for giving the apperance of a fakekill brick on projectile hit brick X amount of times. I have all of it but the apperance of FakeKill.


%brick.fakeKillBrick(3-vector direction, int time);
%brick.respawn(); - Use if you want to respawn a brick earlier than the time it was killed for

For instance, %brick.fakeKillBrick("0 0 10",5); will cause a brick to explode as if hit by a hammer (moving slightly upwards) for five seconds and %brick.fakeKillBrick("0 0 0",0); will cause a brick to fall downwards and disappear permanently until respawned.

What you may want to do is have the direction as some multiple of the brick damage the projectile does and the vector from the projectile to the brick's centre, that way rocket explosions will cause builds to explode outwards rather than just falling down.