Scripts Recollection - 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 Articles (https://www.frictionalgames.com/forum/forum-40.html) +---- Thread: Scripts Recollection (/thread-5117.html) |
RE: Scripts Recollection - SilentStriker - 01-21-2012 This is a pretty effective script that makes you add/remove/lit alot of stuff without having alot of text For example if you have 6 torches and you want to turn off at the same time when walking in to an area you can use this Code: void OnStart() RE: Scripts Recollection - CorinthianMerchant - 01-21-2012 (01-21-2012, 10:03 AM)SilentStriker Wrote: This is a pretty effective script that makes you add/remove/lit alot of stuff without having alot of text Thanks a lot, but what do I put instead of "FUNCTIONNAME", and how do I make it with the key? RE: Scripts Recollection - SilentStriker - 01-21-2012 (01-21-2012, 02:29 PM)CorinthianMerchant Wrote:The FUCTIONNAME is just the name you want to call so it could be anything as long as you write the same on the void FUCTIONNAME(01-21-2012, 10:03 AM)SilentStriker Wrote: This is a pretty effective script that makes you add/remove/lit alot of stuff without having alot of text What do you mean about the key? RE: Scripts Recollection - CorinthianMerchant - 01-21-2012 Quote:Lamps will extinguish when you pick up a key. RE: Scripts Recollection - SilentStriker - 01-21-2012 (01-21-2012, 03:23 PM)CorinthianMerchant Wrote:then you use this:Quote:Lamps will extinguish when you pick up a key. SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction); instead of the AddEntityCollideCallback RE: Scripts Recollection - CorinthianMerchant - 01-21-2012 (01-21-2012, 03:43 PM)SilentStriker Wrote:(01-21-2012, 03:23 PM)CorinthianMerchant Wrote:then you use this:Quote:Lamps will extinguish when you pick up a key. Excellent! RE: Scripts Recollection - jillis - 01-23-2012 Hey there I need some help! What I want: you pick up a key and something moves. What I have: PHP Code: void OnStart() What I get: nothing! I've tried everything but it doesn't work!! I am sure the key is called key1. where does the message pop up? im in dev mode and show debug messages is enabled. RE: Scripts Recollection - flamez3 - 01-23-2012 Wrong syntax. Use: (string &in asEntity, int alState) Instead of (string& asName, string& asCallback) RE: Scripts Recollection - jillis - 01-23-2012 (01-23-2012, 10:14 AM)flamez3 Wrote: Wrong syntax.Sorry it doesn't work. I'm in a dev environment and show debug messages is on. I don't get any errors but I don't know where the msg is. RE: Scripts Recollection - flamez3 - 01-24-2012 Oops, use (string &in asEntity) instead ^^ |