Problems Trying To 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Problems Trying To Script (/thread-7558.html) |
Problems Trying To Script - D3AD UPR1S1NG - 04-22-2011 I've been trying to make it so the player hears a loud noise and stares at this closed door but I don't how to make the player stop looking any ideas? RE: Problems Trying To Script - Kyle - 04-22-2011 Where do you want the player to hear this load noise? What kind of load noise? Specific noise? ID/Name of closed door? I'll try my best. Code: OnStart() That's mostly all I can do for now. RE: Problems Trying To Script - D3AD UPR1S1NG - 04-22-2011 (04-22-2011, 04:56 AM)Kyle Wrote: Where do you want the player to hear this load noise? What kind of load noise? Specific noise? ID/Name of closed door? Well the player was supposed to unlock the door to the cell which is working and then there is a locked door next to a open one but I wanted the crashing sound to play from the locked one using the script which I have got working although I cant find out how to stop the player from staring at the door making the rest of the level awkward RE: Problems Trying To Script - Kyle - 04-22-2011 (04-22-2011, 05:00 AM)D3AD UPR1S1NG Wrote: Well the player was supposed to unlock the door to the cell which is working and then there is a locked door next to a open one but I wanted the crashing sound to play from the locked one using the script which I have got working although I cant find out how to stop the player from staring at the door making the rest of the level awkward You add this: Code: AddTimer("", [however long you want the player to stare], "PlayerStareStop"); Code: void PlayerStareStop(string &in asTimer) RE: Problems Trying To Script - D3AD UPR1S1NG - 04-22-2011 (04-22-2011, 05:08 AM)Kyle Wrote:(04-22-2011, 05:00 AM)D3AD UPR1S1NG Wrote: Well the player was supposed to unlock the door to the cell which is working and then there is a locked door next to a open one but I wanted the crashing sound to play from the locked one using the script which I have got working although I cant find out how to stop the player from staring at the door making the rest of the level awkward Alright thanks I'll let you know if it works (04-22-2011, 05:08 AM)Kyle Wrote:(04-22-2011, 05:00 AM)D3AD UPR1S1NG Wrote: Well the player was supposed to unlock the door to the cell which is working and then there is a locked door next to a open one but I wanted the crashing sound to play from the locked one using the script which I have got working although I cant find out how to stop the player from staring at the door making the rest of the level awkward Still hasn't worked he still stares at that door RE: Problems Trying To Script - D3AD UPR1S1NG - 04-22-2011 It's alright managed to get it working thanks anyway RE: Problems Trying To Script - Kyle - 04-22-2011 No problem. |