![]() |
Contained item - 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: Contained item (/thread-18203.html) Pages:
1
2
|
RE: Contained item - FlawlessHappiness - 09-08-2012 (09-08-2012, 05:54 PM)Kiwi2703 Wrote: I thought maybe there is a script that would set the customsubitemname for a certain thing... Is there?Never heard of it.. Only GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount); RE: Contained item - Kiwi2703 - 09-08-2012 (09-08-2012, 06:13 PM)beecake Wrote:So the only way to do it is setting an event after breaking the bottle... then use the GiveItem... am I right?(09-08-2012, 05:54 PM)Kiwi2703 Wrote: I thought maybe there is a script that would set the customsubitemname for a certain thing... Is there?Never heard of it.. Only GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount); RE: Contained item - FlawlessHappiness - 09-08-2012 No sorry, I don't know, but that would not look like the key is inside the bottle RE: Contained item - Kiwi2703 - 09-08-2012 I will probably do it like this: When the player breaks the bottle, he will automatically obtain the key. And some message like "yay, I found it!" will pop up.. Thanks for answers though! ![]() That also makes me ask... How do I set the event when player break the bottle? I see CallbackFunc for the bottle and there is also "Break", but I dunno how to use it.. :/ RE: Contained item - FlawlessHappiness - 09-08-2012 If you have a small map, you could cover the floor in a script area, and make it collide function with the bottle. Then in the function make it SetPropHealth("Bottle", 0); and the GiveItem, and SetMessage... RE: Contained item - Kiwi2703 - 09-08-2012 (09-08-2012, 06:41 PM)beecake Wrote: If you have a small map, you could cover the floor in a script area, and make it collide function with the bottle. Then in the function make it SetPropHealth("Bottle", 0); and the GiveItem, and SetMessage...Not a bad idea but the player can throw it into a wall, ceiling or some other objects as well.. RE: Contained item - FlawlessHappiness - 09-08-2012 Indeed... Thats kinda buggy |