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
Why isn't this script working?
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Why isn't this script working?

RemoveItem(asItem); it needs quotation marks around asItem.
And you missed the other quotation mark around AreaFillBucket


Quote:void OnStart()
{

// Debug
if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");
}

PlayMusic("02_amb_strange.ogg", true, 0.2f, 2, 0, true);
AddUseItemCallback("", "bucket_empty_1", "AreaFillBucket", "FillBucketFunc", true);
}

void FillBucketFunc(string &in asItem, string &in asEntity)
{
PlaySoundAtEntity("", "04_water_puff.snt", "AreaFillBucket", 0.0f, true);
RemoveItem("asItem");
GiveItemFromFile("filled_bucket", "wooden_bucket_filled.ent");
}

There is the script that you should use


(This post was last modified: 01-09-2012, 09:13 AM by flamez3.)
01-09-2012, 09:12 AM
Find


Messages In This Thread
Why isn't this script working? - by Shadowfied - 01-09-2012, 09:03 AM
RE: Why isn't this script working? - by flamez3 - 01-09-2012, 09:12 AM
RE: Why isn't this script working? - by flamez3 - 01-09-2012, 09:24 AM



Users browsing this thread: 1 Guest(s)