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
level doors
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#5
RE: level doors

(02-15-2013, 10:14 PM)megsb927 Wrote:
(02-15-2013, 10:04 PM)i3670 Wrote: We won't know what the problem is if you don't post your script. Anyway.

You should use

SetLevelDoorLocked(string& asName, bool abLocked);

NOT

SetSwingDoorLocked(string& asName, bool abLocked, bool abEffects);

void OnStart()
{
AddUseItemCallback("", "Key_1", "level_wood_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("level_wood_1", false, true);
PlaySoundAtEntity("", "unlock_door", "level_wood_1", 0, false);
RemoveItem("Key_1");
}

void OnEnter()
{

}

void OnLeave()
{

}
that is my map script I tried changing it to SetLevelDoorLocked and it said fatal error

void OnStart()
{
AddUseItemCallback("", "Key_1", "level_wood_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("level_wood_1", false);
PlaySoundAtEntity("", "unlock_door", "level_wood_1", 0, false);
RemoveItem("Key_1");
}

void OnEnter()
{

}

void OnLeave()
{

}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
02-15-2013, 10:18 PM
Find


Messages In This Thread
level doors - by megsb927 - 02-15-2013, 10:02 PM
RE: level doors - by i3670 - 02-15-2013, 10:04 PM
RE: level doors - by megsb927 - 02-15-2013, 10:14 PM
RE: level doors - by The chaser - 02-15-2013, 10:18 PM
RE: level doors - by NaxEla - 02-15-2013, 10:16 PM
RE: level doors - by megsb927 - 02-15-2013, 10:52 PM



Users browsing this thread: 1 Guest(s)