![]() |
Showing blood effects only once
To check if a player has been hit:
PHP Code:
PHP Code:
|
You'll have to show us the script of the class "bloodfx" as well. :)
|
I'm pretty sure onActionProjectile is triggered (when clientside) when ever a projectile hits something, not just the client player. Check up info on projectiles on the wiki as well as check out the tokens in the params variable (while in the onActionProjectile block).
|
Sure. :)
PHP Code:
The next 3 are the blood effects.. The 7th param is the sound effect. All the params = index of sprite/sound. |
Quote:
|
Use showimgs, why putnpcs for blood effects?
|
Quote:
Why not set it as a player attr? |
if(actionprojectile2) is the one that triggers when it hits anything. Not just the player. That's why I am using a testplayer() to see if it the player or not.
@cbk1994: How would that work? PHP Code:
|
Quote:
|
Quote:
|
Quote:
would probably work. If not, showani( 1, "mybloodgani", player.x, player.y ); may. |
Woah, didn't know there a showani() command. Thanks i'll try it.
It automatically deletes itself after being played, right? |
Quote:
Might want to do this: PHP Code:
Here are the showani params. showani( index, x, y, direction, animation, params ); So something like PHP Code:
|
The scheduleevent doesn seem to work it keeps playing over and over again...
PHP Code:
THANKS MAN +rep osht cant.. |
Why do you use a combination of GS1 and GS2?
function onActionProjectile() Also, replace 'length' with the time ... |
All times are GMT +2. The time now is 04:40 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.