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
#14
RE: Problem with placing item script

(10-06-2010, 02:59 AM)Entih Wrote: Alright, now inventory item combining is something I tried, but the combine would always fail miserably (callback would do nothing but would not fail), so not sure I can help that far. Though here it goes.

So the combine callback triggers a give item function where the player is given the item, yes? What does your GiveItem call look like?

Alternatively, if all else fails, try to place the item you want to use directly into the map with the proper settings, and see if it works being picked up. If it does and you cannot figure this out, have an excuse for the player to combine it together in the map rather than in inventory.

Already tried to put the item directly on the map, added also a callback on the item bu nothing. Thats how it looks the combine item script I use in inventory.hps:

void CombineCheeseAndPoison(string &in asItemA, string &in asItemB)
{
PlayGuiSound("15_make_hammer", 1.0f);

RemoveItem(asItemA); RemoveItem(asItemB);

GiveItem("neurocheese_poison", "Puzzle", "NeuroCheesePoisonItem", "neuro_cheesepoison.tga", 0);


}

On GiveItem I tried also using this:

GiveItem("neurocheese_poison_"+i, "Puzzle", "NeuroCheesePoisonItem", "neuro_cheesepoison.tga", 0);

But nothing. I will try another thing, instead of an area I'll try to use another entity to interact with, maybe it works.

Neurological - Music Entertainment
http://www.neuro-lab.net
10-06-2010, 03:11 AM
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 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 Neurological - 10-06-2010, 03:11 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)