Hello everyone!
So, I was making my map and I wanted to make a scare (a door opening) what doesn't work is the force part. I don't know what the hell is wrong, I've tried a lot of things but nothing works. So, I hope someone finds the problem.
Here's the script, I only post the problematic part (Note that this is going to be used for a serious CS)
Script:
void Open_door_wind_1(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_1", false, true);
SetSwingDoorDisableAutoClose("castle_1", true);
AddTimer("", 0.5, "Door_1_timer");
}
void Door_1_timer (string &in asTimer)
{
CreateParticleSystemAtEntity("", "ps_dust_whirl", "AreaOpenEffect", false);
PlaySoundAtEntity("AreaOpenEffect", "scare_wind.snt", "Player", 1, true);
AddPropForce("castle_1", 0, 0, -800, "world");
}
void Open_door_wind_2(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_2", false, true);
SetSwingDoorDisableAutoClose("castle_2", true);
AddTimer("", 0.5, "Door_2_timer");
}
void Door_2_timer (string &in asTimer)
{
CreateParticleSystemAtEntity("", "ps_dust_whirl", "AreaOpenEffect_1", false);
PlaySoundAtEntity("AreaOpenEffect_1", "scare_wind.snt", "Player", 1, true);
AddPropForce("castle_2", -2000, 0, 0, "world");
}
I'm worried about this (and there is no map_cache, if someone thought that was the problem)