It seems that when the following script is attached to an Area OnEnter event, it fires infinitely:
void CreateObjectVoid(int nObjectType, string sTemplate, location lLoc, int bUseAppearAnimation = FALSE)
{
CreateObject(nObjectType, sTemplate, lLoc, bUseAppearAnimation);
}
void main()
{
object oSpawn = GetWaypointByTag("WP_Spawn");
location lSpawn = GetLocation(oSpawn);
DelayCommand(0.4, CreateObjectVoid(OBJECT_TYPE_CREATURE, "cityguard", lSpawn));
}
Is this wanted behaviour?
Oh, and ff there is no DelayCommand() the game freezes on the loading screen...