02-10-2011, 04:02 PM
Okay, so I have a problem with my door. I've made a script on another door for closing it but no matter how high I put the vals on the prop impulse on this door, nothing happens (Not even if I put the door slightly open)
My door looks like this:
http://i53.tinypic.com/2elr28y.jpg
And my script:
So I simply want the door to get slammed open. All the other scripts in this code works except for the AddPropImpulse one. Any clues? (Btw, the door has the name "GruntChaseDoor" exactly as it's written.
My door looks like this:
http://i53.tinypic.com/2elr28y.jpg
And my script:
Code:
void CollideGruntChase(string &in asParent, string &in asChild, int alState)
{
AddPropImpulse("GruntChaseDoor", 1.0f, 0.0f, 1.0f, "World"); //Have also tried 1.0f, 0.0f, 0.0f - 0.0f, 0.0f, 1.0f - 0.0f, 1.0f, 0.0f and a few other combinations but the door just won't even move slightly.
GiveSanityDamage(7.0f, true);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, true);
PlaySoundAtEntity("", "door_prison_open.snt", "mansion_4", 0, true);
StartScreenShake(0.008, 0.5f, 0.1f,0.3f);
SetEntityActive("grunt_1", true);
ShowEnemyPlayerPosition("grunt_1");
}
So I simply want the door to get slammed open. All the other scripts in this code works except for the AddPropImpulse one. Any clues? (Btw, the door has the name "GruntChaseDoor" exactly as it's written.