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 Error unexpected end of file! Please help
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#6
RE: Script Error unexpected end of file! Please help

Of course, judging by the context, what you REALLY want to write is this:

void UseBottle(string &in asItem, string &in asEntity)
{
if(asItem == "glass_container_1")
{
PlaySoundAtEntity("fillbottle", "puzzle_acid_success", asEntity, 1.0f, false);
RemoveItem(asItem);
GiveItemFromFile("glass_container_filled", "glass_container_filled.ent");
GiveSanityBoostSmall();
}
}

Noob scripting tutorial: From Noob to Pro

(This post was last modified: 04-06-2012, 01:02 PM by Cranky Old Man.)
04-06-2012, 01:01 PM
Find


Messages In This Thread
RE: Script Error unexpected end of file! Please help - by Cranky Old Man - 04-06-2012, 01:01 PM



Users browsing this thread: 1 Guest(s)