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
Can't use my acid on web
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#11
RE: Can't use my acid on web

(10-04-2012, 02:15 PM)Your Computer Wrote: What name did you give it?
"glass_container_mix_done1" as used in the AddUseItemCallback

Here is my full script as it is now:

void OnEnter()
{
AddUseItemCallback("", "glass_container_1", "acid_container_1", "giveacid", true);
AddUseItemCallback("", "glass_container_mix_done1", "ScriptArea_1", "burnweb", true);
}

void giveacid(string &in asItem, string &in asEntity)
{
RemoveItem("glass_container_1");
GiveItem("glass_container_mix_done1", "glass_container_mix_done1", "glasscontainermixdone", "glass_container_mix_done.tga", 1);
}

void burnweb(string &in asItem, string &in asEntity)
{
SetPropActiveAndFade("web_1", false, 3);
}

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 10-04-2012, 02:19 PM by Lizard.)
10-04-2012, 02:18 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#12
RE: Can't use my acid on web

Does anything else in the script work? Is the script area active?

Tutorials: From Noob to Pro
10-04-2012, 02:40 PM
Website Find
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#13
RE: Can't use my acid on web

(10-04-2012, 02:40 PM)Your Computer Wrote: Does anything else in the script work? Is the script area active?
the area is active and everything works fine, except the burnweb function

CURRENT PROJECT:
A Fathers Secret == Just started
10-04-2012, 02:43 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#14
RE: Can't use my acid on web

I tested your code and it seems "Puzzle" is required for the asType parameter for GiveItem.

Tutorials: From Noob to Pro
10-04-2012, 02:56 PM
Website Find
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#15
RE: Can't use my acid on web

It works fine now

Thanks man

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 10-04-2012, 03:07 PM by Lizard.)
10-04-2012, 03:02 PM
Find




Users browsing this thread: 1 Guest(s)