![]() |
Wall script - 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: Wall script (/thread-13808.html) |
RE: Wall script - Saren - 03-07-2012 (03-07-2012, 08:29 AM)flamez3 Wrote: No. If you read it you would find out there are 5 parameters to meet:Yea but are'nt you suppose to switch out the asItem with the item you are going to use (which in this case is Hammer & Chipper) asEntity as the entity to use it on (Which in this case is cell_breakable_wall_1) asFunction is what to do...?? and the last 1 is just false or true... Or have I completely misunderstood everything here O.o RE: Wall script - flamez3 - 03-07-2012 (03-07-2012, 09:02 AM)Saren Wrote:You missed the internal name.(03-07-2012, 08:29 AM)flamez3 Wrote: No. If you read it you would find out there are 5 parameters to meet:Yea but are'nt you suppose to switch out the asItem with the item you are going to use (which in this case is Hammer & Chipper) asEntity as the entity to use it on (Which in this case is cell_breakable_wall_1) asFunction is what to do...?? and the last 1 is just false or true... Or have I completely misunderstood everything here O.o RE: Wall script - Saren - 03-07-2012 (03-07-2012, 09:19 AM)flamez3 Wrote:Oh right... what's that?(03-07-2012, 09:02 AM)Saren Wrote:You missed the internal name.(03-07-2012, 08:29 AM)flamez3 Wrote: RE: Wall script - flamez3 - 03-07-2012 AddUseItemCallback(string& asName, string& asItem, string& asEntity, string& asFunction, bool abAutoDestroy); asName - internal name asItem - internal name of the item asEntity - entity to be able to use the item on asFunction - function to call abAutoDestroy - determines whether the item is destroyed when used RE: Wall script - Saren - 03-07-2012 (03-07-2012, 11:17 AM)flamez3 Wrote: AddUseItemCallback(string& asName, string& asItem, string& asEntity, string& asFunction, bool abAutoDestroy);I SAW THAT O.o... It just says... internal name... it dose'nt explain what it's used for or anything RE: Wall script - Your Computer - 03-07-2012 It's for the name of the callback. RE: Wall script - flamez3 - 03-07-2012 It doesn't have to be anything, you can just put "" RE: Wall script - Saren - 03-07-2012 (03-07-2012, 11:32 AM)flamez3 Wrote: It doesn't have to be anything, you can just put ""Right so... why would I need it and plus, (03-07-2012, 11:23 AM)Your Computer Wrote: It's for the name of the callback.if it's just a name and you don't have to type anything.. how can my script be wrong.... RE: Wall script - flamez3 - 03-07-2012 You need to have the "" in there. Like this: AddUseItemCallback("", "Hammer & Chipper", "cell_breakable_wall_1", "BreakWall", true); You need it cause that's how the function works. RE: Wall script - Saren - 03-07-2012 (03-07-2012, 12:34 PM)flamez3 Wrote: You need to have the "" in there. Like this:So I need the "" things no matter what..... you know, it would have been a 100 times easier pointing that out from the start.... but uhm, I guess you wanted me to see it myself or.... something... dunno..... oh well, now I know.... thx.. lol |