Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 5 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shortcut Codes
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#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
Chilton Offline
Member

Posts: 138
Threads: 9
Joined: Sep 2010
Reputation: 0
#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 :p
(This post was last modified: 11-11-2010, 03:32 AM by Chilton.)
11-11-2010, 03:27 AM
Find
Frontcannon Offline
Senior Member

Posts: 538
Threads: 10
Joined: Jul 2010
Reputation: 2
#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
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#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
Frontcannon Offline
Senior Member

Posts: 538
Threads: 10
Joined: Jul 2010
Reputation: 2
#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
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#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
Hooumeri Offline
Member

Posts: 57
Threads: 11
Joined: Oct 2010
Reputation: 0
#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
Akumasama Offline
Member

Posts: 122
Threads: 2
Joined: Nov 2010
Reputation: 0
#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




Users browsing this thread: 2 Guest(s)