Quote:
Originally Posted by cbk1994
It would probably be better to use images for what you want, or even invisible NPCs, that, when shot, stop blocking for x time.
PHP Code:
function onActionProjectile() {
dontblock();
scheduleevent(3, "Block", "");
}
function onBlock() {
blockagain();
}
//#CLIENTSIDE
function onCreated() {
setshape(1, WIDTH_IN_PIXELS, HEIGHT_IN_PIXELS);
}
Should be able to get the basic gist out of the above code.
|
Yes, I agree with you, I probably should use an image, BUT I dislike using images (almost as much as I hate using custom tiles) because I can achieve the same effect without creating a new image.
I have another question, relating to my refusal to using images. Is it possible to draw tiles over a player and make it not block? I read somewhere about Graal using multiple layers for tiles.