01-15-2012, 06:58 AM
Ok, this is giving me the shits, and i just cant think of what to do.
SetSwingDoorClosed wont work...
Im trying to make it so that the wind blows the door open blah blah blah.
Its probably just something really stupid and obvious but it just wont open, it twiches sometimes but shit doesn't work.
void OnStart()
{
AddEntityCollideCallback("Player", "WindArea", "WindScare", true, 1);
SetSwingDoorDisableAutoClose("WindDoor", true);
}
void WindScare(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("WindDoor", false, true);
CreateParticleSystemAtEntity("DustPushing", "ps_dust_paper_blow.ps", "Particle_Spawn", true);
}
Im thinking it must be in the lvl editor, because im not getting errors, ill try it on a different door...
SetSwingDoorClosed wont work...
Im trying to make it so that the wind blows the door open blah blah blah.
Its probably just something really stupid and obvious but it just wont open, it twiches sometimes but shit doesn't work.
void OnStart()
{
AddEntityCollideCallback("Player", "WindArea", "WindScare", true, 1);
SetSwingDoorDisableAutoClose("WindDoor", true);
}
void WindScare(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("WindDoor", false, true);
CreateParticleSystemAtEntity("DustPushing", "ps_dust_paper_blow.ps", "Particle_Spawn", true);
}
Im thinking it must be in the lvl editor, because im not getting errors, ill try it on a different door...