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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Please with Scripting
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#2
RE: Help Please with Scripting

Help with scripting and mapping is supposed to be in the Development Support thread Smile

But have you named your key StudyKey_1 in both the name and the CustomSubItemName?

write the script like this,

////////////////////////////

// Run when the map starts

void OnStart()

{

AddUseItemCallback("", "NAMEOFKEY", "NAMEOFDOOR", "UnlockLevelDoor", true);

}

////////////////////////////

// Run when entering map

void OnEnter()

{

}



////////////////////////////

// Run when leaving map

void OnLeave()

{



}

void UnlockLevelDoor(string &in asItem,string &in asEntity)

{

SetLevelDoorLocked(asEntity, false);

RemoveItem(asItem);

}

(This post was last modified: 03-31-2012, 12:05 PM by SilentStriker.)
03-31-2012, 12:01 PM
Find


Messages In This Thread
Help Please with Scripting - by abe.lloyd - 03-31-2012, 12:00 PM
RE: Help Please with Scripting - by SilentStriker - 03-31-2012, 12:01 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 01:58 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 03:41 PM
RE: Help Please with Scripting - by SilentStriker - 03-31-2012, 03:48 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 04:03 PM
RE: Help Please with Scripting - by SilentStriker - 03-31-2012, 04:29 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 04:36 PM
RE: Help Please with Scripting - by flamez3 - 03-31-2012, 04:36 PM
RE: Help Please with Scripting - by SilentStriker - 03-31-2012, 04:38 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 04:43 PM
RE: Help Please with Scripting - by flamez3 - 03-31-2012, 04:44 PM
RE: Help Please with Scripting - by abe.lloyd - 03-31-2012, 04:59 PM
RE: Help Please with Scripting - by flamez3 - 03-31-2012, 05:07 PM
RE: Help Please with Scripting - by abe.lloyd - 04-01-2012, 10:16 AM
RE: Help Please with Scripting - by flamez3 - 04-01-2012, 10:25 AM
RE: Help Please with Scripting - by abe.lloyd - 04-01-2012, 10:39 AM



Users browsing this thread: 3 Guest(s)