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 Needed] Key found in one level used on Door in another.
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: [Help Needed] Key found in one level used on Door in another.

The key you find in the level 1 is named "Key". The door in the 2 level is named "Door".

Code for level 2:

void OnStart()
{
AddUseItemCallback("", "Key", "Door", "Opendadoor", true);
}

void Opendadoor (string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door", false, true);
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
12-28-2012, 01:42 PM
Find


Messages In This Thread
RE: [Help Needed] Key found in one level used on Door in another. - by The chaser - 12-28-2012, 01:42 PM



Users browsing this thread: 1 Guest(s)