Frictional Games Forum (read-only)
Shortcut Codes - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Shortcut Codes (/thread-5380.html)



Shortcut Codes - Gamemakingdude - 11-09-2010

I've found a way to shorten amount of lines for unlocking doors.

This is the code

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


RE: Shortcut Codes - Chilton - 11-11-2010

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


RE: Shortcut Codes - Frontcannon - 11-11-2010

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


RE: Shortcut Codes - Gamemakingdude - 11-11-2010

(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


RE: Shortcut Codes - Frontcannon - 11-11-2010

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


RE: Shortcut Codes - Gamemakingdude - 11-11-2010

(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


RE: Shortcut Codes - Hooumeri - 11-12-2010

(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


RE: Shortcut Codes - Akumasama - 11-13-2010

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.