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
I need help fast
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#2
RE: I need help fast

(04-17-2013, 08:58 PM)MacKetchup Wrote: void OnStart()
{
AddUseItemCallback("", "nyckel", "mansion_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", true, false);
PlaySoundAtEntity("","unlock_door.snt", "mansion_1" ,0 ,false);
RemoveItem("nyckel");
GiveSanityBoostSmall();
}

void OnEnter(){
{
}


void OnLeave()
{
}


void OnGameStart(){ }
{
}

Whats wrong with the code , i could need some help i have tried this now for over 3 hours

VERY basic scripting error

void OnEnter(){
{
}


void OnLeave()
{
}


void OnGameStart(){ }
{
}

The highlighted text does not belong here. delete it from script. Your new script should look like this.

void OnStart()
{
AddUseItemCallback("", "nyckel", "mansion_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", true, false);
PlaySoundAtEntity("","unlock_door.snt", "mansion_1" ,0 ,false);
RemoveItem("nyckel");
GiveSanityBoostSmall();
}

void OnEnter()
{
}


void OnLeave()
{
}


void OnGameStart()
{
}

(This post was last modified: 04-17-2013, 09:09 PM by 7heDubz.)
04-17-2013, 09:07 PM
Find


Messages In This Thread
I need help fast - by MacKetchup - 04-17-2013, 08:58 PM
RE: I need help fast - by 7heDubz - 04-17-2013, 09:07 PM
RE: I need help fast - by Streetboat - 04-17-2013, 09:07 PM
RE: I need help fast - by 7heDubz - 04-17-2013, 09:10 PM
RE: I need help fast - by MacKetchup - 04-18-2013, 04:05 PM
RE: I need help fast - by 7heDubz - 04-28-2013, 10:05 PM



Users browsing this thread: 1 Guest(s)