olrik666 
			Junior Member0  
	
		
			
[Solved] How to unlock door with a Wheel ? 
 
				hi guys, I want to know which script to use in order to open a leveldoor with a valve. 
I can't find it. 
      Thanks 
				
(This post was last modified: 10-25-2014, 05:49 PM by olrik666 .) 
 
				
			 
		 
 
 
	10-24-2014, 07:44 PM  
		
	 
 
	
		Straxedix 
			Senior Member5  
	
		
			
RE: How to unlock door with a Wheel ? 
  
 
 
	10-24-2014, 07:48 PM  
		
	 
 
	
		olrik666 
			Junior Member0  
	
		
			
RE: How to unlock door with a Wheel ? 
 
				I don't understand :/
			
			
				
(This post was last modified: 10-24-2014, 08:49 PM by olrik666 .) 
 
				
			 
		 
 
 
	10-24-2014, 08:39 PM  
		
	 
 
	
		DnALANGE 
			Banned 
	
		
			
RE: How to unlock door with a Wheel ? 
 
				Try adding this in OnStart
SetEntityConnectionStateChangeCallback ( "NameofyourwheelintheLeveleditor" ,  "unlockdoor" );  
				
(This post was last modified: 10-25-2014, 12:43 PM by DnALANGE .) 
 
				
			 
		 
 
 
	10-25-2014, 12:40 PM  
		
	 
 
	
		Straxedix 
			Senior Member5  
	
		
			
RE: How to unlock door with a Wheel ? 
 
				As DnALANGE said add that code on "void OnStart()" 
so it should looks like 
Spoiler below!  
void OnStart () SetEntityConnectionStateChangeCallback ( "NameofyourwheelintheLeveleditor" ,  "unlockdoor" );  PreloadSound ( "17_steam.snt" ); PreloadSound ( "unlock_door.snt" ); SetLocalVarInt ( "Valve_iron1" ,  0 ); void OnLeave () SetupLoadScreen ( "Loading" ,  "LoadScreen1" ,  0 ,  "LoadScreenImage1.png" ); /////////Interact void unlockdoor ( string  & in asEntity ,  int alState ) alState  ==  1 ) SetLevelDoorLocked ( "door_complex1" ,  false ); PlaySoundAtEntity ( "" ,  "unlock_door.snt" ,  "door_complex1" ,  0 ,  false ); PlaySoundAtEntity ( "" ,  "17_steam.snt" ,  "barrier" ,  0 ,  false ); 
 
 
 
And try using the spoiler it saves a lot of place in thread :P
like:[.spoiler]text[./spoiler] (without the dot) :D
			
				
(This post was last modified: 10-25-2014, 01:06 PM by Straxedix .) 
 
				
			 
		 
 
 
	10-25-2014, 01:03 PM  
		
	 
 
	
		burge4150 
			Member0  
	
		
			
RE: How to unlock door with a Wheel ? 
 
				I'm just here to reaffirm:
			
			
			
		 
 
 
	10-25-2014, 02:31 PM  
		
	 
 
	
		DnALANGE 
			Banned 
	
		
			
RE: How to unlock door with a Wheel ? 
 
				Then this guy should fix this issue by doing this function IN the script itself ;
SetWheelStuckState ( "YOURWheelName" ,  1 ,  true );  
This will STUCK it''s state in 
Quote: 
 or 
Quote: 
-
Burge4150, next time if you have an argument, please add the solution as well.
			
				
(This post was last modified: 10-25-2014, 05:33 PM by DnALANGE .) 
 
				
			 
		 
 
 
	10-25-2014, 04:09 PM  
		
	 
 
	
		olrik666 
			Junior Member0  
	
		
			
RE: How to unlock door with a Wheel ? 
 
				Thanks you all guys 
 it's work fine 
 
 
 
	10-25-2014, 05:11 PM  
		
	 
 
	
		DnALANGE 
			Banned 
	
		
			
RE: How to unlock door with a Wheel ? 
 
				 (10-25-2014, 05:11 PM) olrik666 Wrote:  
+Rep for me 
You can give people kudo's \ reputatuion points for fun.
Only if you want to offcourse..
You dont have to do that now.
Just IF you want you can press on players name and REP + a small tekst for it.
For any other issues. be free to post them.
HINT; IF you have anything solved, please add SOLVED on your theeadh page.
So people do not have to go look into your "solved threadh"
			
 
			
			
			
		 
 
 
	10-25-2014, 05:32 PM  
		
	 
 
	
		Straxedix 
			Senior Member5  
	
		
			
RE: [Solved] How to unlock door with a Wheel ? 
 
				Glad i helped :P
			
			
			
 
 
 
	10-25-2014, 06:40 PM