Frictional Games Forum (read-only)

Full Version: Script Area Item Interaction Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:


Code:
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.
Click the area and make sure "Item Interaction" is enabled in the editor.
(04-14-2012, 06:30 AM)Putmalk Wrote: [ -> ]Click the area and make sure "Item Interaction" is enabled in the editor.
Yep it is.
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)
(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.