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
Problem with placing item script
Neurological Offline
Member

Posts: 71
Threads: 11
Joined: Sep 2010
Reputation: 1
#10
RE: Problem with placing item script

(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.

Neurological - Music Entertainment
http://www.neuro-lab.net
10-05-2010, 11:29 PM
Find


Messages In This Thread
RE: Problem with placing item script - by Luis - 10-04-2010, 07:46 AM
RE: Problem with placing item script - by Jordo76 - 10-05-2010, 09:43 PM
RE: Problem with placing item script - by Entih - 10-05-2010, 10:29 PM
RE: Problem with placing item script - by Neurological - 10-05-2010, 11:29 PM
RE: Problem with placing item script - by Entih - 10-06-2010, 01:10 AM
RE: Problem with placing item script - by Entih - 10-06-2010, 02:59 AM
RE: Problem with placing item script - by Entih - 10-06-2010, 03:14 AM
RE: Problem with placing item script - by Entih - 10-06-2010, 03:32 AM
RE: Problem with placing item script - by Entih - 10-06-2010, 10:23 PM



Users browsing this thread: 1 Guest(s)