Hooumeri 
 
 
		
			Member 
			
			
			
 
			
	Posts: 57 
	Threads: 11 
	Joined: Oct 2010
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Lantern script 
			 
			
				void PickLanternUnlockDoor(string &in EntityName, string &in Type) { if(Type == "OnPickup") { SetSwingDoorLocked("door_name", false, true); } } 
 
 
I found this from another thread, could I make this work with mine?
			  
			
			
			
		 |  
	 
 | 
 
	| 10-22-2010, 03:59 PM  | 
	
		
	 | 
 
 
	
		
		Mofo 
 
 
		
			Member 
			
			
			
 
			
	Posts: 71 
	Threads: 4 
	Joined: Sep 2010
	
 Reputation: 
2
		
	 | 
	
		
			
RE: Lantern script 
			 
			
				 (10-22-2010, 03:59 PM)Hooumeri Wrote:  void PickLanternUnlockDoor(string &in EntityName, string &in Type) { if(Type == "OnPickup") { SetSwingDoorLocked("door_name", false, true); } } 
 
  
I found this from another thread, could I make this work with mine? 
sure, works fine.
			  
			
			
			
		 |  
	 
 | 
 
	| 10-22-2010, 04:13 PM  | 
	
		
	 | 
 
 
	
		
		Hooumeri 
 
 
		
			Member 
			
			
			
 
			
	Posts: 57 
	Threads: 11 
	Joined: Oct 2010
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Lantern script 
			 
			
				 (10-22-2010, 04:13 PM)Mofo Wrote:   (10-22-2010, 03:59 PM)Hooumeri Wrote:  void PickLanternUnlockDoor(string &in EntityName, string &in Type) { if(Type == "OnPickup") { SetSwingDoorLocked("door_name", false, true); } } 
 
  
I found this from another thread, could I make this work with mine?  
sure, works fine. 
Then what should I type to "if(Type == "____") instead of OnPickup?
			  
			
			
			
		 |  
	 
 | 
 
	| 10-22-2010, 04:14 PM  | 
	
		
	 | 
 
 
	
		
		Hooumeri 
 
 
		
			Member 
			
			
			
 
			
	Posts: 57 
	Threads: 11 
	Joined: Oct 2010
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Lantern script 
			 
			
				Something like OnActive?
			 
			
			
			
		 |  
	 
 | 
 
	| 10-22-2010, 09:11 PM  | 
	
		
	 | 
 
 
	
		
		ThePaSch 
 
 
		
			Member 
			
			
			
 
			
	Posts: 108 
	Threads: 11 
	Joined: Sep 2010
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Lantern script 
			 
			
				 (10-22-2010, 09:11 PM)Hooumeri Wrote:  Something like OnActive? 
Nope, it's not possible with my script piece, no matter what you replace OnPickup with. "OnActive" is not a valid Type.
			  
			
			
			
		 |  
	 
 | 
 
	| 10-22-2010, 09:42 PM  | 
	
		
	 | 
 
 
	
		
		nofsky 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 423 
	Threads: 13 
	Joined: Sep 2008
	
 Reputation: 
1
		
	 | 
	
		
			
RE: Lantern script 
			 
			
				If you check the tooltip on the CallbackFunc text box you see that the available types are OnPickup, Break and OnIgnite. I don't think there's more than that.
			 
			
			
			
		 |  
	 
 | 
 
	| 10-23-2010, 01:25 AM  | 
	
		
	 | 
 
 
	
		
		Hooumeri 
 
 
		
			Member 
			
			
			
 
			
	Posts: 57 
	Threads: 11 
	Joined: Oct 2010
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Lantern script 
			 
			
				 (10-23-2010, 01:25 AM)nofsky Wrote:  If you check the tooltip on the CallbackFunc text box you see that the available types are OnPickup, Break and OnIgnite. I don't think there's more than that. 
But when I checked them from the script functions page, it said
 
"* Callback syntax: MyFunc(string &in entity, string &in type). Type depends on entity type and includes: "OnPickup", "Break", "OnIgnite",  etc 
			 
			
			
			
		 |  
	 
 | 
 
	| 10-23-2010, 02:45 PM  | 
	
		
	 | 
 
 
	
		
		ThePaSch 
 
 
		
			Member 
			
			
			
 
			
	Posts: 108 
	Threads: 11 
	Joined: Sep 2010
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Lantern script 
			 
			
				 (10-23-2010, 02:45 PM)Hooumeri Wrote:  But when I checked them from the script functions page, it said 
 
"* Callback syntax: MyFunc(string &in entity, string &in type). Type depends on entity type and includes: "OnPickup", "Break", "OnIgnite", etc 
 
"OnActive" still doesn't exist, afaik.
			  
			
			
			
		 |  
	 
 | 
 
	| 10-23-2010, 07:03 PM  | 
	
		
	 | 
 
 
	
		
		Pandemoneus 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 328 
	Threads: 2 
	Joined: Sep 2010
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Lantern script 
			 
			
				Would be "OnActivate" or "OnActivation" anyway, "OnActive" isn't English.   
			 
			
			
 
			
		 |  
	 
 | 
 
	| 10-23-2010, 07:43 PM  | 
	
		
	 | 
 
 
	
		
		Hooumeri 
 
 
		
			Member 
			
			
			
 
			
	Posts: 57 
	Threads: 11 
	Joined: Oct 2010
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Lantern script 
			 
			
				 (10-23-2010, 07:43 PM)Pandemoneus Wrote:  Would be "OnActivate" or "OnActivation" anyway, "OnActive" isn't English.   
Is there a way to see all of the possible commands you can type in there?
			  
			
			
			
		 |  
	 
 | 
 
	| 10-23-2010, 09:09 PM  | 
	
		
	 | 
 
 
	 
 |