Rapture, your code
should work. Perhaps the entity needs a unique name, though, so try:
//Change your first bit of code to this
for(int i = 0; i <10; i++)
AddTimer("T"+i, i, "TimerFunction");
//Change your timer callback to this
void TimerFunction(string &in asTimer)
{
AddDebugMessage("Creating object Create"+asTimer,false);
PlaySoundAtEntity("scare", "react_scare.snt", "Player", 0, false);
CreateEntityAtArea("Create"+asTimer, "vase01.ent", "ScriptArea_1", false);
}
Though note that this will create all the vases at one location. You should create multiple script areas and do the following:
//Change your first bit of code to this
for(int i = 0; i <10; i++)
AddTimer("_"+(i+1), i, "TimerFunction");
//Change your timer callback to this
void TimerFunction(string &in asTimer)
{
AddDebugMessage("Creating object Create"+asTimer,false);
PlaySoundAtEntity("scare", "react_scare.snt", "Player", 0, false);
CreateEntityAtArea("Create"+asTimer, "vase01.ent", "ScriptArea"+asTimer, false);
}