I made the following script by following a tutorial video on YouTube for TSL:
How do I execute the above script? I'm using KOTOR tool and know C++
Code:
void main()
{
object ONPC = GetObjectByTag("dgon");
int bPassive=FALSE;
AssignCommand(ONPC, ActionAttack(GetFirstPC(), bPassive));
}