N00B needs help AGAIN - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: N00B needs help AGAIN (/thread-7730.html) |
N00B needs help AGAIN - X4anco - 05-01-2011 Hello I'm trying to make lamps go out when a player goes into an area but it doesn't work (No errors) AddEntityCollideCallback("Player", "ScriptArea_1", "Function01", true, 1); . . . void Function01(string &in asEntity) { SetEntityActive("candlestick01_1", false); SetEntityActive("PointLight_1", false); } RE: N00B needs help AGAIN - Roenlond - 05-01-2011 (05-01-2011, 01:28 PM)X4anco Wrote: Hello I'm trying to make lamps go out when a player goes into an area but it doesn't work (No errors) Code: void OnStart() RE: N00B needs help AGAIN - X4anco - 05-01-2011 Thank you SO much Oh one quick question how would I get a sound to play at the same time ? :/ coDe _________________ PlaySoundAtEntity("", "guardian_activated1", "player", 0, true); RE: N00B needs help AGAIN - Roenlond - 05-01-2011 (05-01-2011, 02:05 PM)X4anco Wrote: Thank you SO much I would use: Code: void OnStart() I didn't test it, but it should work. RE: N00B needs help AGAIN - X4anco - 05-01-2011 Thankyou RE: N00B needs help AGAIN - ricky horror - 05-02-2011 also, PlaySoundAtEntity and PlayMusic works too |