SetThingSpecial
From ZDoom Wiki
void SetThingSpecial (int tid, int special [, int arg0 [, int arg1 [, int arg2 [, int arg3 [, int arg4]]]]])
Usage
Sets the special for any things with the same TID. This is similar to Thing_SetSpecial, except it can only be used from ACS, and it can set all of a thing's special arguments. If tid is 0, then the activator is used.
Examples
This script will give all with the tid of 1 the special ACS_ExecuteAlways to tally a score when killed.
int score[8];
script 1 open
{
SetThingSpecial(1, ACS_ExecuteAlways, 2);
}
script 2 (void)
{
if (PlayerNumber() >= 0)
{
score[PlayerNumber()]++;
}
}