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
Script Issues
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#8
RE: Script Issues

(08-08-2013, 10:01 PM)Havervahn Wrote: Ok now its a different issue, It gives me a Unexpected End of File error.
Script:
void OnStart()
{
SetEntityPlayerLookAtCallback("Paintingher", "looking", false);

AddUseItemCallback("", "billard_key", "billarddoor", "UseKeyOnDoor", true);
}

void Lockedbillard(string &in entity)
{
if(GetSwingDoorLocked("billarddoor",) == true)
{

SetMessage("Messages", "Lockeddoor", 6);

}
}



void looking(string &in asEntity, int alState){
SetMessage("Messages", "Memory", 9);
}

void OnEnter()

{

}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("billarddoor", false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);


void PhonographScare(string &in EntityName, int alState)
{
if(alState == 1) ///revised int alCount to int alState
{
PlaySoundAtEntity("", "broken_music_box.ogg", "Phonograph_1", 5.0f, false);
SetPropStaticPhysics("Phonograph_1", true);

}
}

void OnLeave()
{

}

void OnStart()
{
SetEntityPlayerLookAtCallback("Paintingher", "looking", false);

AddUseItemCallback("", "billard_key", "billarddoor", "UseKeyOnDoor", true);
}

void Lockedbillard(string &in entity)
{
if(GetSwingDoorLocked("billarddoor") == true)
{

SetMessage("Messages", "Lockeddoor", 6);

}
}



void looking(string &in asEntity, int alState)
{
SetMessage("Messages", "Memory", 9);
}

void OnEnter()

{

}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("billarddoor", false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}

void PhonographScare(string &in EntityName, int alState)
{
if(alState == 1) ///revised int alCount to int alState
{
PlaySoundAtEntity("", "broken_music_box.ogg", "Phonograph_1", 5.0f, false);
SetPropStaticPhysics("Phonograph_1", true);

}
}

void OnLeave()
{

}

It should be fixed now, I removed an innecessary "," and added a missing {.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
08-08-2013, 10:23 PM
Find


Messages In This Thread
Script Issues - by Gilligan's Hell - 08-08-2013, 06:13 AM
RE: Script Issues - by Kreekakon - 08-08-2013, 06:21 AM
RE: Script Issues - by Gilligan's Hell - 08-08-2013, 06:23 AM
RE: Script Issues - by Kreekakon - 08-08-2013, 06:27 AM
RE: Script Issues - by Gilligan's Hell - 08-08-2013, 06:28 AM
RE: Script Issues - by Your Computer - 08-08-2013, 10:08 AM
RE: Script Issues - by Gilligan's Hell - 08-08-2013, 10:01 PM
RE: Script Issues - by The chaser - 08-08-2013, 10:23 PM
RE: Script Issues - by Gilligan's Hell - 08-08-2013, 10:28 PM
RE: Script Issues - by The chaser - 08-08-2013, 11:11 PM
RE: Script Issues - by Gilligan's Hell - 08-09-2013, 07:34 AM



Users browsing this thread: 7 Guest(s)