I'd like to code an item to punish a player for run gunning with "ranged" weapons, IE arrow farting, but I don't really see a way to tell whether or not they're doing it .. I tried using "action_movetopoint", but it doesn't seem to register that the PC is moving while they're also attacking. Is there any way to definitively tell, and have the script act accordingly?
{
if(GetCurrentAction(oSpellTarget) == ACTION_MOVETOPOINT)
{
nChance = GetCasterLevel(OBJECT_SELF) * 20;
SpeakString("Stop that cheater!", TALKVOLUME_TALK);
}
else
{
nChance = GetCasterLevel(OBJECT_SELF) * 2;
}





Retour en haut







