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


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prison Section Door
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#19
RE: Prison Section Door

hitdoor(asParent , asChild , alState);
{
AddLocalVarInt("HitNumber" , 1);
if(GetLocalVarInt("HitNumber")>=3){
// Grunt has hit the door 3 times
}
}

This is wrong...

Try this:

void hitdoor(string &in asParent, string &in asChild, int alState)
{
     AddLocalVarInt("HitNumber", 1);
     if (GetLocalVarInt("HitNumber") == 3)
     {
          SetPropHealth("DoorName", 0);
     }
}

By the way, what if the door is already open? What are you going to do then? Add it to the script? You can simply have the monster stand there as the game simulates the monster hitting it each time with the monster just standing right outside of the door until the door is broken down, then the monster continues on his path.

(This post was last modified: 07-31-2011, 02:16 PM by Kyle.)
07-31-2011, 02:13 PM
Find


Messages In This Thread
Prison Section Door - by MrCookieh - 07-22-2011, 11:27 PM
RE: Prison Section Door - by Obliviator27 - 07-22-2011, 11:29 PM
RE: Prison Section Door - by MrCookieh - 07-22-2011, 11:31 PM
RE: Prison Section Door - by Juby - 07-22-2011, 11:46 PM
RE: Prison Section Door - by palistov - 07-23-2011, 02:03 AM
RE: Prison Section Door - by BendyBread - 07-23-2011, 07:45 AM
RE: Prison Section Door - by palistov - 07-23-2011, 08:53 AM
RE: Prison Section Door - by MrCookieh - 07-23-2011, 01:09 PM
RE: Prison Section Door - by Angerpull - 07-23-2011, 07:27 PM
RE: Prison Section Door - by MrCookieh - 07-23-2011, 08:13 PM
RE: Prison Section Door - by AlexxShadenk777 - 07-26-2011, 09:10 PM
RE: Prison Section Door - by MrCookieh - 07-26-2011, 09:18 PM
RE: Prison Section Door - by Grimstoll - 07-27-2011, 12:02 AM
RE: Prison Section Door - by MrCookieh - 07-27-2011, 11:05 AM
RE: Prison Section Door - by Grimstoll - 07-27-2011, 03:54 PM
RE: Prison Section Door - by MrCookieh - 07-31-2011, 09:59 AM
RE: Prison Section Door - by MrCookieh - 07-28-2011, 10:56 AM
RE: Prison Section Door - by DRedshot - 07-31-2011, 12:22 PM
RE: Prison Section Door - by Kyle - 07-31-2011, 02:13 PM
RE: Prison Section Door - by MrCookieh - 07-31-2011, 03:36 PM
RE: Prison Section Door - by DRedshot - 07-31-2011, 03:58 PM
RE: Prison Section Door - by MrCookieh - 07-31-2011, 04:04 PM
RE: Prison Section Door - by Kyle - 07-31-2011, 04:09 PM
RE: Prison Section Door - by MrCookieh - 07-31-2011, 04:23 PM
RE: Prison Section Door - by DRedshot - 07-31-2011, 08:08 PM
RE: Prison Section Door - by MrCookieh - 07-31-2011, 08:15 PM
RE: Prison Section Door - by DRedshot - 07-31-2011, 08:17 PM
RE: Prison Section Door - by MrCookieh - 07-31-2011, 08:21 PM



Users browsing this thread: 1 Guest(s)