Okay I have a Female Drow who is suposse to be whipping a slave. The slaves script works fine.. He does all the animation that hes suppose to do. But the Drow just stand their as if she is gazing in darkness. Also she should be whipping the slave if and when a player enters the area.
//:: Whipper On_HeartBeat script
void main()
{
object oArea = GetArea(OBJECT_SELF);
int sPCINAREA = FALSE;
object oObject = GetFirstObjectInArea(oArea);
while(GetIsObjectValid(oObject))
{
if(GetIsPC(oObject))
{
sPCINAREA = TRUE;
}
oObject = GetNextObjectInArea(oArea);
}
if(sPCINAREA == TRUE)
{
string sWhippy = "WHIPPY";
object oWhippy = GetObjectByTag(sWhippy);
if(GetIsObjectValid(oWhippy))
{
AssignCommand (OBJECT_SELF, ActionAttack(oWhippy));
//ActionAttack(oWhippy);
//ClearAllActions(TRUE);
}
}
}
Yes, I double and triple check to make sure that the slave has the correct TAG. Gotta be a simple fix but I'm kinda working on a bunch of things at once which I may have looked over something.
Thanks in advance.