The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AddPropImpulse not working [SOLVED]
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#1
AddPropImpulse not working [SOLVED]

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:
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.

Creator of The Dark Treasure.
(This post was last modified: 02-10-2011, 09:38 PM by Linus Ågren.)
02-10-2011, 04:02 PM
Website Find


Messages In This Thread
AddPropImpulse not working [SOLVED] - by Linus Ågren - 02-10-2011, 04:02 PM
RE: AddPropImpulse not working - by Tottel - 02-10-2011, 04:07 PM
RE: AddPropImpulse not working - by Linus Ågren - 02-10-2011, 04:18 PM
RE: AddPropImpulse not working - by Tanshaydar - 02-10-2011, 04:38 PM
RE: AddPropImpulse not working - by Linus Ågren - 02-10-2011, 09:27 PM
RE: AddPropImpulse not working - by Tanshaydar - 02-10-2011, 09:32 PM
RE: AddPropImpulse not working - by Linus Ågren - 02-10-2011, 09:37 PM



Users browsing this thread: 1 Guest(s)