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