help script stuff sorta - 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: help script stuff sorta (/thread-24186.html) Pages:
1
2
|
RE: help script stuff sorta - PutraenusAlivius - 12-23-2013 (12-23-2013, 01:57 AM)Romulator Wrote: BEFORE trying the scripting suggestion below in the spoiler... Callback syntax god dang it. RE: help script stuff sorta - MrJackrabbit - 12-23-2013 alright so i finally got it to work yay . well if you guys would mind helping out any more could you provide a link or script for unlocking a swing door with the object? RE: help script stuff sorta - PutraenusAlivius - 12-23-2013 Here ya go bro. If you have any more problems, post it here. RE: help script stuff sorta - MrJackrabbit - 12-23-2013 (12-23-2013, 03:37 AM)JustAnotherPlayer Wrote: Here ya go bro. thank ya very much brahh well i have another problem. i get the needle (which is the item i am using to unlock the door) and when i attempt to use it on a door it says "cannot be used this way". if your willing to help: void OnStart() { AddUseItemCallback("", "hollow_needle_1", "mansion_1", "FUNCTION", true); } blah blah blah blah blah onEnter blah onLeave blah void FUNCTION(string &in asItem, string &in asEntity) { SetSwingDoorLocked(asEntity, false, true); PlaySoundAtEntity("", "unlock_door", asEntity, 0, false); RemoveItem(asItem); } RE: help script stuff sorta - PutraenusAlivius - 12-23-2013 Did you put in the functions at CustomSubItemTypeName in the Level Editor? And did you make the properties in the .lang file? EDIT: If you use the item on the WRONG door, it won't work. RE: help script stuff sorta - MrJackrabbit - 12-23-2013 (12-23-2013, 04:15 AM)JustAnotherPlayer Wrote: Did you put in the functions at CustomSubItemTypeName in the Level Editor? And did you make the properties in the .lang file? Ive done the stuff in the .lang but idk what to do with the level editor RE: help script stuff sorta - PutraenusAlivius - 12-23-2013 Just type anything. Or something. |