Ghost Touch to damage event HELP
Hello all!
Im making a ghost plugin. Very basic idea , ghost pounce on humans and kills them =] 1 ghost on t rest ct. When a ghost touches an enemy he will pounce on them with animation :D from model seqences. Then the enemy will -5 health per "pounce" which is continuous like every 3 seconds ( I dont know how to make the 3 seconds delay yet) . The ghost will + frags when it pounce on them. But from this plugin I tested , it seems that the plugin hasnt even reached to the "public ghost_is_killing(id)" , its not touched it all. No frags are added or anyones dying. Help!! Thanks!! PHP Code:
|
Re: Ghost Touch to damage event HELP
No errors or warnings when compiling?
EDIT: is the ghost going to have noclip? cuz i think he should =] |
Re: Ghost Touch to damage event HELP
Nope No errors . But damage doesnt work =/
I think "set_task(0.1, "ghost_is_killing", id)" is wrong. I think i should have done it another way to make it to another task. Can someone help? |
Re: Ghost Touch to damage event HELP
search for "touch" and see how others did it. the problem is not your task
|
Re: Ghost Touch to damage event HELP
Ive serached many of them , most of them are touching weapons or simple stuff like that. Its easy for them because they can do everything in the same line like
"client_print(id, print_center, "%s Picked up %s",Gun , person)" they do not need to set a task like mine : "set_task(0.1, "ghost_is_killing", id)" I need to do this because I need to make checks like every second to see if the ghost is still on the human. If its not then I will stop adding frags / killing human and stuff. Please give a hint? I cant see whats wrong with my code =/ |
Re: Ghost Touch to damage event HELP
attach the sma
|
Re: Ghost Touch to damage event HELP
PHP Code:
|
Re: Ghost Touch to damage event HELP
Quote:
|
Re: Ghost Touch to damage event HELP
sry Thats not the exact code Im just saying that i serached forums and yes if they touch a gun or something like that they can do its function in the same
public fwd_touch event but i used a task from the touch event its not working so I need help. Anyone see anything wrong?????? |
Re: Ghost Touch to damage event HELP
I think i should have set task to victim instead?
set_task(0.1, "ghost_is_killing", victim) Or both? set_task(0.1, "ghost_is_killing", id) set_task(0.1, "ghost_is_killing", victim) Anyone..? |
| All times are GMT -4. The time now is 01:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.