I'm trying to make an ACS execute after a certain mob that has a TID of 3 loses 50% of its health points or more (in this case the monster has 100 base HP).
I've tried with:
script 1 OPEN
{
When (GetActorProperty (3, APROP_HEALTH,"monstername") <= 50)
{
Acs_Execute(2,0);
}
}
and also:
script 1 OPEN
{
if (GetActorProperty (3, APROP_HEALTH) <= 50)
Acs_Execute(2,0);
}
Yet none worked. What am I doing wrong?