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
Door is not automatically opening!! D=
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#1
Door is not automatically opening!! D=

So I'm making a map (obviously) and I set a script event where the player falls to the floor unconscious for a moment when he walks into an area. And when he wakes back up, the door in front of him is supposed to open by itself. But it isn't opening! can someone help me here? This is my script (minus the junk to make the player fall unconscious):

________________________
void OnStart()
{
AddEntityCollideCallback("Player", "fadeoutarea", "autoopendoor", true, 1);
}

void autoopendoor(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 2.0, "dooropensequence");
}

void dooropensequence(string &in asTimer)
{
SetSwingDoorClosed("exitdoor", false, false);
SetSwingDoorDisableAutoClose("exitdoor", true);
AddPropForce("exitdoor", 270.0, 0, 0, "world");
}
___________________________
(This post was last modified: 10-01-2011, 09:21 PM by Statyk.)
10-01-2011, 09:19 PM
Find


Messages In This Thread
Door is not automatically opening!! D= - by Statyk - 10-01-2011, 09:19 PM



Users browsing this thread: 1 Guest(s)