The activation of thec script is tied by action special 80 on the actor.
The script is following:
Code: Select all
script "randomDrop_poacher" (void)
{
int randomController;
randomController = random(0,5);
str items2drop[6] = {
"ClipOfBullets",
"Gold10",
"Gold25",
"MedPatch",
"MedicalKit",
"Hyposprej"
};
DropItem(0, items2drop[randomController], 1, 256);
ACS_NamedExecuteAlways("poachersKilled", 0);
}
Baecause, whe it is set with 0, it does not drop anything. When I set it according to monsters TID, things are dropeed.