(10-05-2010, 10:29 PM)Entih Wrote: Alright, so you want to use an item on the area, correct? What does it say when you try to use the item on the area?
If I am correct, it says "No object to use item on" or "Cannot use item this way". This can be one of two things. Either one, you did not check the item interactive flag on the area's entity settings, but it sounds like you did that. It can also be that there was an issue setting up the item and its use callback. Make sure that the item name matches that used in the callback (this is the actual name used in the editor, not the SubItemTypeName used for language file entries) without typos or differences.
In my tests, if the item name for the use callback doesn't match, the item will behave as if the area is not interactive for it. If you already checked all of this, I'm not sure what to suggest without seeing the map and script for myself.
I did all that stuff, the area is a Script area with the interactive flag checked. The problem with the item is that doesn't even highlight when hover the area, this happen with any item.
A summary of what I did.
I've 2 entities:
1 - neurocheese_poison_1 (this is the actual item that is in the invetory)
2 - neurocheese_poisonstatic_1 (this is the one that have to appear on the map, is setted up as Object/Static Object on the entity properties)
So I placed on the map the neurocheese_poisonstatic_1 with the Active box checked. As you see in the script the entity is deactivated OnStart.
Then I create a Script area called AreaPlaceCheese with the Interactive flag checked.
When I go ingame I can't interact with the area with any item, the icon won't glow or anything. Surely I'm missing something, I'm nw to this kind of scripting as I come from Doom 3 modding and is a lot different.