The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
Shortcut Codes - by Gamemakingdude - 11-09-2010, 11:47 AM
RE: Shortcut Codes - by Chilton - 11-11-2010, 03:27 AM
RE: Shortcut Codes - by Frontcannon - 11-11-2010, 03:09 PM
RE: Shortcut Codes - by Gamemakingdude - 11-11-2010, 10:02 PM
RE: Shortcut Codes - by Hooumeri - 11-12-2010, 03:29 PM
RE: Shortcut Codes - by Akumasama - 11-13-2010, 03:49 PM
RE: Shortcut Codes - by Frontcannon - 11-11-2010, 10:17 PM
RE: Shortcut Codes - by Gamemakingdude - 11-11-2010, 10:38 PM



Users browsing this thread: 1 Guest(s)