| 
		
	
		| Gamemakingdude   Senior Member
 
 Posts: 470
 Threads: 82
 Joined: Nov 2010
 Reputation: 
9
 | 
			| Shortcut Codes 
 
				I've found a way to shorten amount of lines for unlocking doors. 
This is the code
 ///Modifed from MulleDK19 door tutorialvoid OnStart()
 {
 AddUseItemCallback("", "key", "door", "UsedKeyOnDoor", true);
 }
 
 void UsedKeyOnDoor(string &in asItem, string &in asEntity)
 {
 SetSwingDoorLocked(asEntity,false,true);
 PlaySoundAtEntity("","unlock_door", asEntity, 0, false);
 RemoveItem(asItem);
 }
This will allow many doors to be unlocked using just this procedure. 
 
If you have any shortcuts for codes, you can post  here for other people to use
   
- GMD
			
 
				
(This post was last modified: 11-09-2010, 11:48 AM by Gamemakingdude.)
 |  |  
	| 11-09-2010, 11:47 AM |  |  
	
		| Chilton   Member
 
 Posts: 138
 Threads: 9
 Joined: Sep 2010
 Reputation: 
0
 | 
			| RE: Shortcut Codes 
 
				I dont see how this could benefit you, when its just the same code normally used with less things filled in... Keeping in mind you can just copypaste the regular code, which is just that one only more filled in, and change the name of the door and key each time...
 EDIT: NO, wait, i get it. Sorry. I just saw what you did there. Its still a very small retraction though, but at least it makes sense :p
 
				
(This post was last modified: 11-11-2010, 03:32 AM by Chilton.)
 |  |  
	| 11-11-2010, 03:27 AM |  |  
	
		| Frontcannon   Senior Member
 
 Posts: 538
 Threads: 10
 Joined: Jul 2010
 Reputation: 
2
 | 
			| RE: Shortcut Codes 
 
				Shortcuts for the editor:
 Q / W
 Rotates the object when it's not placed.
 
 1-9
 Accesses the different tools
 
 Q / W / E when object selected
 Circles through placement, rotation and scale modes
 
 ctrl+s - saves
 ctrl+d - duplicates selected object, good for making walls and the like
 ctrl+b - creates compound I think, for advanced map-making
 
 ╔═════════════════╗
 ☺ Smoke weed everyday ☺
 ╚═════════════════╝
 |  |  
	| 11-11-2010, 03:09 PM |  |  
	
		| Gamemakingdude   Senior Member
 
 Posts: 470
 Threads: 82
 Joined: Nov 2010
 Reputation: 
9
 | 
			| RE: Shortcut Codes 
 
				 (11-11-2010, 03:09 PM)Frontcannon Wrote:  Shortcuts for the editor:
 Q / W
 Rotates the object when it's not placed.
 
 1-9
 Accesses the different tools
 
 Q / W / E when object selected
 Circles through placement, rotation and scale modes
 
 ctrl+s - saves
 ctrl+d - duplicates selected object, good for making walls and the like
 ctrl+b - creates compound I think, for advanced map-making
 
This should be mentioned in the wiki, otherwise people will have a very hard time learning how to use the editor
			 
 |  |  
	| 11-11-2010, 10:02 PM |  |  
	
		| Frontcannon   Senior Member
 
 Posts: 538
 Threads: 10
 Joined: Jul 2010
 Reputation: 
2
 | 
			| RE: Shortcut Codes 
 
				It's actually just B for creating a compound. Compounds are 'custom' objects. Just select multiple objects (let's say a wall and some fitting welders) so they are all selected at the same time and then press b. The compound should now be marked red, and it behaves like ONE giant object, you can move it around and duplicate without the hassle of rebuilding it everytime   
 ╔═════════════════╗
 ☺ Smoke weed everyday ☺
 ╚═════════════════╝
 |  |  
	| 11-11-2010, 10:17 PM |  |  
	
		| Gamemakingdude   Senior Member
 
 Posts: 470
 Threads: 82
 Joined: Nov 2010
 Reputation: 
9
 | 
			| RE: Shortcut Codes 
 
				 (11-11-2010, 10:17 PM)Frontcannon Wrote:  It's actually just B for creating a compound. Compounds are 'custom' objects. Just select multiple objects (let's say a wall and some fitting welders) so they are all selected at the same time and then press b. The compound should now be marked red, and it behaves like ONE giant object, you can move it around and duplicate without the hassle of rebuilding it everytime  
That is awesome and useful for grouping rooms    
 |  |  
	| 11-11-2010, 10:38 PM |  |  
	
		| Hooumeri   Member
 
 Posts: 57
 Threads: 11
 Joined: Oct 2010
 Reputation: 
0
 | 
			| RE: Shortcut Codes 
 
				 (11-11-2010, 03:09 PM)Frontcannon Wrote:  Shortcuts for the editor:
 Q / W
 Rotates the object when it's not placed.
 
 1-9
 Accesses the different tools
 
 Q / W / E when object selected
 Circles through placement, rotation and scale modes
 
 ctrl+s - saves
 ctrl+d - duplicates selected object, good for making walls and the like
 ctrl+b - creates compound I think, for advanced map-making
 
I would add CTRL + Y = Redo
			 |  |  
	| 11-12-2010, 03:29 PM |  |  
	
		| Akumasama   Member
 
 Posts: 122
 Threads: 2
 Joined: Nov 2010
 Reputation: 
0
 | 
			| RE: Shortcut Codes 
 
				Also don't forget the Q and W for when you have the static object tool.This makes it rotate, thus making it a lot easier to use for placing walls instead of using D + Move.
 |  |  
	| 11-13-2010, 03:49 PM |  |  |