The syntax was incorrect. This should work:
void OnStart()
{
AddEntityCollideCallback("Player", "area_opendoor1", "opendoor1", true, 1);
}
void opendoor1(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorDisableAutoClose("1_mansion", true);
SetSwingDoorClosed("1_mansion", false, false);
for (int i = 0; i < 10; i++)
{
AddTimer("1_mansion", i * 0.1, "OpenDoorSlightly");
}
}
void OpenDoorSlightly(string &in door_name)
{
AddPropForce(door_name, 1000, 1000, 1000, "world");
}
But, why you use force in every coordinate? Just put force in the X axis or in the Z axis and if it doesn't work, go trying.
this is a tutorial that you may like:
http://wiki.frictionalgames.com/hpl2/tut...hdoorsopen (opening doors with force)
http://wiki.frictionalgames.com/hpl2/tut...ipt/events (slam)
Also, why do you use a "for"?