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
Lever Problem
Brothersvv09 Offline
Member

Posts: 57
Threads: 29
Joined: Aug 2012
Reputation: 0
#3
RE: Lever Problem

That didnt work :/ it said :
main ERR 4,6 can't be void
main ERR 4,44 only objects have constructors
Here is my script:
void OnStart()
{
AddUseItemCallback("", "key", "LockedDoor1", "UsedKeyOnDoor", true);
void SetEntityConnectionStateChangeCallback("Lever", UnlockDoor);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("LockedDoor1", false, true);
RemoveItem("key");
}

void UnlockDoor(string &in asEntity, int alState);
{
if (alState == 1)
{
SetEntityActive("LockedDoor2", true);
return;
}
}
08-04-2012, 01:58 AM
Find


Messages In This Thread
Lever Problem - by Brothersvv09 - 08-04-2012, 12:47 AM
RE: Lever Problem - by Kazakarumariou - 08-04-2012, 01:38 AM
RE: Lever Problem - by Brothersvv09 - 08-04-2012, 01:58 AM
RE: Lever Problem - by Kazakarumariou - 08-04-2012, 01:59 AM
RE: Lever Problem - by Brothersvv09 - 08-04-2012, 02:05 AM
RE: Lever Problem - by Kazakarumariou - 08-04-2012, 02:37 AM
RE: Lever Problem - by Brothersvv09 - 08-04-2012, 03:51 AM



Users browsing this thread: 1 Guest(s)