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
Something wrong with prison doors?
Ninami Offline
Member

Posts: 59
Threads: 6
Joined: Feb 2012
Reputation: 2
#1
Something wrong with prison doors?

Hey so I got a map where a door should open by itself. I followed "Your Computer" youtube video but didn't get the same result?

I'm using prison_1 and my script is like this:



void LieDown(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("prison_1", 4, 4, "");
MovePlayerHeadPos(0, -1.0f, 0, 1, 0.1f);
FadePlayerRollTo(70, 1, 20);
SetPlayerActive(true);
SetSwingDoorDisableAutoClose("prison_1", true);
SetSwingDoorLocked("prison_1", false, false);
AddTimer("Close", 3, "Close1");
AddTimer("Close", 5, "Close2");
AddTimer("Close", 7, "Close3");
AddTimer("Close", 9, "Close4");
//SetEntityActive("Enemy", true);
//SetEnemyDisableTriggers("Enemy", true);
//AddEnemyPatrolNode("Enemy", "Node_1", 1, "");
//AddEnemyPatrolNode("Enemy", "Node_2", 5, "");

for (int i = 0; i < 10; i++)
{
AddTimer("prison_1", i * 0.01, "OpenDoor");
}

}

void OpenDoor(string &in asTimer)
{
AddPropForce("prison_1", 0, 0, 1000, "world");
}

I've tried changing the amount of force to "-1000" but doesn't work. I've tried multiple possible solutions but can't seem to fix this problem.

Can anyone spot a problem in the script?
Thanks
Ninami
(This post was last modified: 02-21-2012, 07:08 PM by Ninami.)
02-21-2012, 06:58 PM
Find


Messages In This Thread
Something wrong with prison doors? - by Ninami - 02-21-2012, 06:58 PM



Users browsing this thread: 1 Guest(s)