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
Want Enemies to Open Doors
convolution223 Offline
Member

Posts: 78
Threads: 15
Joined: Jul 2011
Reputation: 0
#1
Want Enemies to Open Doors

Please. I've been trying to do this by having the enemy walk into a script area that says to open the door. But it doesn't work. Can anyone think of a better method, or should this definitely work and there's just something wrong with my code?

also i noticed this door acts like its hinges are greased or something cuz when I open it, it starts to move back closed. I don't mean open it a little, I mean, I open it all the way, it bounces back and starts slowly closing, so I have to carefully place the door open.

It's actually kinda funny cuz one time it closed on my enemy after it walked into the room and it had to break through it to get out.

But yeah, please help.

void CollideAreaTest03(string &in asParent, string &in asChild, int alState)
{
    if(GetSwingDoorLocked("door1")==false){
    //SetMoveObjectStateExt("door1", 1, 0.9, 1, 0.2, true);
    //SetMoveObjectState("door1", 1);
    SetSwingDoorClosed("door1", false, false);
    }
}
and in OnEnter, i have:
AddEntityCollideCallback("brute1", "EnemyAtDoor", "CollideAreaTest03", false, 1);
(This post was last modified: 07-14-2011, 06:51 AM by convolution223.)
07-14-2011, 06:45 AM
Find


Messages In This Thread
Want Enemies to Open Doors - by convolution223 - 07-14-2011, 06:45 AM
RE: Want Enemies to Open Doors - by Paulpolska - 07-14-2011, 07:16 AM
RE: Want Enemies to Open Doors - by Paulpolska - 07-14-2011, 07:34 AM
RE: Want Enemies to Open Doors - by bigfoot - 07-14-2011, 09:47 AM
RE: Want Enemies to Open Doors - by Kyle - 07-14-2011, 02:52 PM
RE: Want Enemies to Open Doors - by nemesis567 - 07-14-2011, 03:31 PM
RE: Want Enemies to Open Doors - by Kyle - 07-14-2011, 06:11 PM
RE: Want Enemies to Open Doors - by nemesis567 - 07-14-2011, 06:19 PM
RE: Want Enemies to Open Doors - by Dizturbed - 07-14-2011, 09:39 PM
RE: Want Enemies to Open Doors - by nemesis567 - 07-14-2011, 10:34 PM
RE: Want Enemies to Open Doors - by ferryadams11 - 07-15-2011, 02:29 PM



Users browsing this thread: 1 Guest(s)