Can't use my acid on web - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Can't use my acid on web (/thread-18626.html) Pages:
1
2
|
Can't use my acid on web - Lizard - 10-04-2012 Hi guys. I've used AddUseItemCallback many times before, with no errors, but this time it just wont work, and i can't really see why. I keep getting "Cannot use item this way" Im hoping that you guys would help me a little void OnEnter() { AddUseItemCallback("", "glass_container_1", "acid_container_1", "giveacid", true); AddUseItemCallback("", "glass_container_mix_done", "web_1", "burnweb", true); } void giveacid(string &in asItem, string &in asEntity) { RemoveItem("glass_container_1"); GiveItem("", "glass_container_mix_done", "glasscontainermixdone", "glass_container_mix_done.tga", 1); } void burnweb(string &in asItem, string &in asEntity) { SetPropHealth("web_1", 0); } I've also checked for name errors I've also tryed, to change name of the container used in the burnweb function "glass_container_mix_done" to "glass_container_mix_done_1" RE: Can't use my acid on web - Ongka - 10-04-2012 Try using SetPropActiveAndFade("web_1", false, 3); instead of SetPropHealth. This will make it "dissolve". RE: Can't use my acid on web - Lizard - 10-04-2012 (10-04-2012, 12:32 PM)Ongka Wrote: Try using SetPropActiveAndFade("web_1", false, 3); instead of SetPropHealth.thanks i might consider that But my problems is when try to use my acid on the web its says "Cannot use this item this way!" RE: Can't use my acid on web - Ongka - 10-04-2012 Create an area instead and place it on the web. You have to tick the box which says "ItemInteraction" and use the item on the script area. This should work fine. RE: Can't use my acid on web - Lizard - 10-04-2012 (10-04-2012, 01:14 PM)Ongka Wrote: Create an area instead and place it on the web. You have to tick the box which says "ItemInteraction" and use the item on the script area. This should work fine.Is still say "Cannot use this item this way" This is what i have now: void OnEnter() { AddUseItemCallback("", "glass_container_1", "acid_container_1", "giveacid", true); AddUseItemCallback("", "glass_container_mix_done1", "ScriptArea_1", "burnweb", true); } void giveacid(string &in asItem, string &in asEntity) { RemoveItem("glass_container_1"); GiveItem("", "glass_container_mix_done1", "glasscontainermixdone", "glass_container_mix_done.tga", 1); } void burnweb(string &in asItem, string &in asEntity) { SetPropActiveAndFade("web_1", false, 3); } picture of web and area: [attachment=3411] RE: Can't use my acid on web - The chaser - 10-04-2012 Try using it with the web itself. Every single entity can be interacted by a puzzle item. So, as acid appears in the screen, why not using the acid on the web directly? This may solve the problem. Try doing easy things. If they don't work, use hard. Yep, that's it. RE: Can't use my acid on web - Lizard - 10-04-2012 (10-04-2012, 01:49 PM)The chaser Wrote: Try using it with the web itself. Every single entity can be interacted by a puzzle item. So, as acid appears in the screen, why not using the acid on the web directly? This may solve the problem.Using it on the web directly was the first thing i did RE: Can't use my acid on web - Your Computer - 10-04-2012 It doesn't work because you didn't give the item a name. RE: Can't use my acid on web - Lizard - 10-04-2012 (10-04-2012, 02:03 PM)Your Computer Wrote: It doesn't work because you didn't give the item a name. GiveItem("", "glass_container_mix_done", "glasscontainermixdone", "glass_container_mix_done.tga", 1); i guess its the first bracket you were talking about? I just tryed to enter the name and add it so it goes whit the script, but still not make it work (10-04-2012, 02:10 PM)ZereboO Wrote:(10-04-2012, 02:03 PM)Your Computer Wrote: It doesn't work because you didn't give the item a name. RE: Can't use my acid on web - Your Computer - 10-04-2012 What name did you give it? |