Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 5 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shortcut Codes
Author Message
Gamemakingdude Offline
Senior Member

Posts: 478
Joined: Nov 2010
Reputation: 9
Post: #1
Shortcut Codes
I've found a way to shorten amount of lines for unlocking doors.

This is the code

///Modifed from MulleDK19 door tutorial
void 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
Big Grin

- GMD

Rep if like me or im helpful or you love my stories!
Stephanos house
(This post was last modified: 11-09-2010 11:48 AM by Gamemakingdude.)
11-09-2010 11:47 AM
Find all posts by this user Quote this message in a reply
Chilton Offline
Member

Posts: 138
Joined: Sep 2010
Reputation: 0
Post: #2
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 Tongue
(This post was last modified: 11-11-2010 03:32 AM by Chilton.)
11-11-2010 03:27 AM
Find all posts by this user Quote this message in a reply
Frontcannon Offline
Senior Member

Posts: 538
Joined: Jul 2010
Reputation: 0
Post: #3
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
Find all posts by this user Quote this message in a reply
Gamemakingdude Offline
Senior Member

Posts: 478
Joined: Nov 2010
Reputation: 9
Post: #4
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

Rep if like me or im helpful or you love my stories!
Stephanos house
11-11-2010 10:02 PM
Find all posts by this user Quote this message in a reply
Frontcannon Offline
Senior Member

Posts: 538
Joined: Jul 2010
Reputation: 0
Post: #5
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 Smile


╔═════════════════╗
☺ Smoke weed everyday ☺
╚═════════════════╝
11-11-2010 10:17 PM
Find all posts by this user Quote this message in a reply
Gamemakingdude Offline
Senior Member

Posts: 478
Joined: Nov 2010
Reputation: 9
Post: #6
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 Smile

That is awesome and useful for grouping rooms Big Grin

Rep if like me or im helpful or you love my stories!
Stephanos house
11-11-2010 10:38 PM
Find all posts by this user Quote this message in a reply
Hooumeri Offline
Member

Posts: 57
Joined: Oct 2010
Reputation: 0
Post: #7
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
Find all posts by this user Quote this message in a reply
Akumasama Offline
Member

Posts: 122
Joined: Nov 2010
Reputation: 0
Post: #8
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
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)