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 Area Item Interaction Help
Nomad923 Offline
Junior Member

Posts: 46
Threads: 15
Joined: Dec 2011
Reputation: 2
#1
Script Area Item Interaction Help

Ive got a small problem, i have a script where if you use an chemical on a script area, it adds that chemical into the jar that is in the script area but it is not working correctly. its saying you cant use this item this way. Ive looked into the Amnesia Main Story maps to see how they did it and compared the two. its pretty much the same.

Here is what im using:


AddUseItemCallback("placebottle2", "cuprite", "AreaPlaceJar", "func2", true);


And here is a picture of the script area

http://i777.photobucket.com/albums/yy59/...titled.png

Edit: And ItemInteraction is checked.

[Image: qg_logo.png]
(This post was last modified: 04-15-2012, 06:14 AM by Nomad923.)
04-14-2012, 06:23 AM
Find
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#2
RE: Script Area Item Interaction Help

Click the area and make sure "Item Interaction" is enabled in the editor.

04-14-2012, 06:30 AM
Find
Nomad923 Offline
Junior Member

Posts: 46
Threads: 15
Joined: Dec 2011
Reputation: 2
#3
RE: Script Area Item Interaction Help

(04-14-2012, 06:30 AM)Putmalk Wrote: Click the area and make sure "Item Interaction" is enabled in the editor.
Yep it is.

[Image: qg_logo.png]
04-14-2012, 06:30 AM
Find
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#4
RE: (STILL NOT WORKING) Script Area Item Interaction Help

Does your map have a map_cache? If so, delete it.

Make sure your item name is "cuprite".

Make sure your function name is "func2".

For now, set that true statement to false.

Make sure your function's arguments are: (string &in asItem, string &in asEntity)

(This post was last modified: 04-14-2012, 05:56 PM by Putmalk.)
04-14-2012, 05:56 PM
Find
Nomad923 Offline
Junior Member

Posts: 46
Threads: 15
Joined: Dec 2011
Reputation: 2
#5
RE: (STILL NOT WORKING) Script Area Item Interaction Help

(04-14-2012, 05:56 PM)Putmalk Wrote: Does your map have a map_cache? If so, delete it.

Make sure your item name is "cuprite".

Make sure your function name is "func2".

For now, set that true statement to false.

Make sure your function's arguments are: (string &in asItem, string &in asEntity)
(╯°□°)╯︵ ┻━┻ it works thanks for the help.

[Image: qg_logo.png]
04-15-2012, 06:13 AM
Find




Users browsing this thread: 2 Guest(s)