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 issue
SLAMnesia Offline
Member

Posts: 99
Threads: 39
Joined: May 2011
Reputation: 0
#1
Script issue

void OnStart()
{
AddUseItemCallback("", "holywater", "ScriptArea_2", "HolyWaterFunc", true);
}

void HolyWaterFunc(string &in asItem, string &in asEntity)
{
SetEntityActive("bucketcharged", true);
RemoveItem("holywater");
SetEntityActive("ScriptArea_1", true);
}

I'm 99% sure the script is purrfectly fine, its mainly the item i'm using in the script: "holywater". I want to use it on a script area but "the combination doesn't work" so I'm wondering how I can bypass this. thanks
08-13-2011, 10:58 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Script issue

It looks like it would work. Perhaps there is something else called "holywater" aside for the item?

Try renaming the item in the level editor and everything connected to it in the script to something like "holywater_1", if that isn't being used already.

08-13-2011, 11:11 PM
Find
Tesseract Offline
Senior Member

Posts: 498
Threads: 7
Joined: Mar 2011
Reputation: 18
#3
RE: Script issue

Ive tried to use items on script areas it does not work you will need a Visible entity.
08-14-2011, 02:10 AM
Find
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#4
RE: Script issue

Ah you have to click on the scriptbox in the leveleditor, and enable "ItemInteraction". Then you can use items on the scriptboxes.

08-14-2011, 12:31 PM
Find
Tesseract Offline
Senior Member

Posts: 498
Threads: 7
Joined: Mar 2011
Reputation: 18
#5
RE: Script issue

(08-14-2011, 12:31 PM)Rownbear Wrote: Ah you have to click on the scriptbox in the leveleditor, and enable "ItemInteraction". Then you can use items on the scriptboxes.

Oh wow never noticed that!

glad you pointed that out Smile
08-15-2011, 01:37 AM
Find




Users browsing this thread: 1 Guest(s)