Headless   
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 20 
	Threads: 3 
	Joined: Dec 2014
	
 Reputation: 
0  
		 
	 
	
		
			
RE: i need some help/ explaination 
  
			 
			
				Yes I did change the prop names on my map. 
Otherwise it would not  unlock in the first place would it? 
------------------------------------------------------------------- 
I use for both doors swing doors
			
			
			
			
		  
	
 
 
	12-26-2014, 01:03 PM   
	
		
	 
 
	
		 
		Headless   
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 20 
	Threads: 3 
	Joined: Dec 2014
	
 Reputation: 
0  
		 
	 
	
		
			
RE: i need some help/ explaination 
  
			 
			
				Ok so i have decided to work on a new map till i ca nfigure out how to do it
			
			
			
			
		  
	
 
 
	12-26-2014, 05:48 PM   
	
		
	 
 
	
		 
		PutraenusAlivius   
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 4,713 
	Threads: 75 
	Joined: Dec 2012
	
 Reputation: 
119  
		 
	 
	
		
			
RE: i need some help/ explaination 
  
			 
			
				 (12-26-2014, 05:48 PM) Headless Wrote:   Ok so i have decided to work on a new map till i ca nfigure out how to do it
Try using my newest script posted before Romulator's post. So the doors won't swing open? They just unlock?
			
 
			
			
 
"Veni, vidi, vici." 
"I came, I saw, I conquered." 
			
		  
	
 
 
	12-26-2014, 05:56 PM   
	
		
	 
 
	
		 
		Headless   
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 20 
	Threads: 3 
	Joined: Dec 2014
	
 Reputation: 
0  
		 
	 
	
		
			
RE: i need some help/ explaination 
  
			 
			
				 (12-26-2014, 05:56 PM) Julius Caesar Wrote:   (12-26-2014, 05:48 PM) Headless Wrote:   Ok so i have decided to work on a new map till i ca nfigure out how to do it 
Try using my newest script posted before Romulator's post. So the doors won't swing open? They just unlock?
I did doesnt work :/
Yes that's what Door_B does.
			
 
			
			
			
				
(This post was last modified: 12-26-2014, 06:27 PM by Headless .) 
 
				
			 
		  
	
 
 
	12-26-2014, 06:22 PM   
	
		
	 
 
	
		 
		Traggey   
 
 
		
			is mildly amused 
			
			
			
 
			
	Posts: 3,257 
	Threads: 74 
	Joined: Feb 2012
	
 Reputation: 
185  
		 
	 
	
		
			
RE: i need some help/ explaination 
  
			 
			
				Try to post in the correct forum next time! 
 
Moved to development support.
			
 
			
			
			
		  
	
 
 
	12-26-2014, 06:56 PM   
	
		
	 
 
	
		 
		Headless   
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 20 
	Threads: 3 
	Joined: Dec 2014
	
 Reputation: 
0  
		 
	 
	
		
			
RE: i need some help/ explaination 
  
			 
			
				Ok I will.
			
			
			
			
		  
	
 
 
	12-26-2014, 07:21 PM   
	
		
	 
 
	
		 
		Headless   
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 20 
	Threads: 3 
	Joined: Dec 2014
	
 Reputation: 
0  
		 
	 
	
		
			
RE: i need some help/ explaination 
  
			 
			
				You know I want to slam it open right? 
 
I thought. maybe the code is made to slose it
			
			
			
			
				
(This post was last modified: 12-27-2014, 12:26 AM by Headless .) 
 
				
			 
		  
	
 
 
	12-26-2014, 10:23 PM   
	
		
	 
 
	
		 
		PutraenusAlivius   
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 4,713 
	Threads: 75 
	Joined: Dec 2012
	
 Reputation: 
119  
		 
	 
	
		
			
RE: i need some help/ explaination 
  
			 
			
				Door_B is on the Z-axis yes? Try one of these scripts. If one of them doesn't work use the other.
FIRST SCRIPT
Spoiler below!   
void OnStart () {      AddUseItemCallback ( "Player" ,  "DoorLocked" ,  "DoorOpenSlamming" ,  "DOORopen" ,  true );      AddUseItemCallback ( "" ,  "DoorLocked" ,  "SlammingSound" ,  "DOORopenSOUND" ,  true );      AddUseItemCallback ( "" ,  "Key" ,  "Door" ,  "UseKeyOnDoor" ,  true );      SetLocalVarInt ( "DoorVar" ,  0 );      SetSwingDoorLocked ( "Door_A" ,  true ,  true );      SetSwingDoorLocked ( "Door_B" ,  true ,  true );      SetEntityPlayerInteractCallback ( "Door_A" ,  "Slam_Door_B" ,  false ); } void UseKeyOnDoor ( string  & in asItem ,  string  & in asEntity ) {      SetSwingDoorLocked ( asEntity ,  false ,  true );      RemoveItem ( asItem ); } void Slam_Door_B ( string  & in asEntity ) {      AddLocalVarInt ( "DoorVar" ,  1 );      DoorCheck (); } void DoorCheck () {     if( GetLocalVarInt ( "DoorVar" ) ==  10 )  //Indicates you have to interact with it ten(10) times      {          AddTimer ( "Slam" ,  2.75f ,  "Slam" );     } } void Slam ( string  & in asTimer ) {      SetSwingDoorLocked ( "Door_B" ,  false ,  true );      AddTimer ( "Ad" ,  0.35f ,  "AddForce" ); }  void AddForce ( string  & in asTimer ) {      AddPropForce ( "Door_B" ,  0 ,  0 ,  5000 ,  "World" );      AddPropImpulse ( "Door_B" ,  0 ,  0 ,  6 ,  "World" ); }  
 
 
 
 
SECOND SCRIPT
Spoiler below!   
void OnStart () {      AddUseItemCallback ( "Player" ,  "DoorLocked" ,  "DoorOpenSlamming" ,  "DOORopen" ,  true );      AddUseItemCallback ( "" ,  "DoorLocked" ,  "SlammingSound" ,  "DOORopenSOUND" ,  true );      AddUseItemCallback ( "" ,  "Key" ,  "Door" ,  "UseKeyOnDoor" ,  true );      SetLocalVarInt ( "DoorVar" ,  0 );      SetSwingDoorLocked ( "Door_A" ,  true ,  true );      SetSwingDoorLocked ( "Door_B" ,  true ,  true );      SetEntityPlayerInteractCallback ( "Door_A" ,  "Slam_Door_B" ,  false ); } void UseKeyOnDoor ( string  & in asItem ,  string  & in asEntity ) {      SetSwingDoorLocked ( asEntity ,  false ,  true );      RemoveItem ( asItem ); } void Slam_Door_B ( string  & in asEntity ) {      AddLocalVarInt ( "DoorVar" ,  1 );      DoorCheck (); } void DoorCheck () {     if( GetLocalVarInt ( "DoorVar" ) ==  10 )  //Indicates you have to interact with it ten(10) times      {          AddTimer ( "Slam" ,  2.75f ,  "Slam" );     } } void Slam ( string  & in asTimer ) {      SetSwingDoorLocked ( "Door_B" ,  false ,  true );      AddTimer ( "Ad" ,  0.35f ,  "AddForce" ); }  void AddForce ( string  & in asTimer ) {      AddPropForce ( "Door_B" ,  0 ,  0 , - 5000 ,  "World" );      AddPropImpulse ( "Door_B" ,  0 ,  0 , - 6 ,  "World" ); }  
 
 
 
 
			 
			
			
 
"Veni, vidi, vici." 
"I came, I saw, I conquered." 
			
		  
	
 
 
	12-27-2014, 01:18 AM   
	
		
	 
 
	
		 
		Headless   
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 20 
	Threads: 3 
	Joined: Dec 2014
	
 Reputation: 
0  
		 
	 
	
		
			
RE: i need some help/ explaination 
  
			 
			
				Still nothing... 
 
Ok so just made a new map to test if it was something with the map. 
made it so i can see both doors. 
what turns out. door B opens for a split second and after that closes it self
			
			
			
			
				
(This post was last modified: 12-27-2014, 02:34 AM by Headless .) 
 
				
			 
		  
	
 
 
	12-27-2014, 02:20 AM   
	
		
	 
 
	
		 
		PutraenusAlivius   
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 4,713 
	Threads: 75 
	Joined: Dec 2012
	
 Reputation: 
119  
		 
	 
	
		
			
RE: i need some help/ explaination 
  
			 
			
				Then add:
SetSwingDoorDisableAutoClose ( string &  asName ,  bool abDisableAutoClose );  
It seems like the door's tendency to close is greater so disable it.
			
 
			
			
 
"Veni, vidi, vici." 
"I came, I saw, I conquered." 
			
		  
	
 
 
	12-27-2014, 04:40 AM