Quote:
Originally posted by DarkShadows_Legend
How would I find out who hit me. Like let's say I want to make something that keeps track of who hit me and what their sword power was. What commands would I use for this?
|
As it already was said, triggeraction... If you want to use the standard sword system then make a extra -system npc...
If you press S then have a triggeraction at a certain place,
triggeraction the.x,the.y,keeptrack,#a,players[index].swordpower;
Also the system should contain:
if (actionkeeptrack){
setstring client.wholasthit,#P1;
setstring client.wholasthitswordpower,#P2;
}