Hey there, I've been working on my custom story for a while now.
The player enters his bedroom, and he decides to go to sleep, but first he must blow out all the candles, so he does. Then, once all the candles are out, the player teleports to the bed. He then wakes up on the bed. I want it so that while he is teleporting to the bed, the door shuts. Without the player saying it or anything like that. So that even if the player doesn't shut the door, it does it anyway.
(05-04-2013, 05:48 PM)FurtherGames Wrote: [ -> ]<bolded text question here>
http://wiki.frictionalgames.com/hpl2/amn...ions#doors Should have the function you're looking for. Specifically, it's this one:
void SetSwingDoorClosed(string& asName, bool abClosed, bool abEffects);
string& asName = "Insert the name of the door here"
bool abClosed = true/false, you want true
bool abEffects = true/false depending on if you want sound to accompany the door closing
And one more thing. I believe the majority of the questions you've asked so far have been answered before and in tutorials on the wiki. Try searching here
http://wiki.frictionalgames.com/hpl2/tut..._tutorials and the forum before you post a question. I certainly don't mind answering, but posting a new thread for each scripting question bumps other people's questions down the page which certainly doesn't help them get their questions answered. I usually just post new questions in the same thread as my old, answered one (so long as they are relevant) to avoid spamming everyone
(05-04-2013, 05:58 PM)Kiandra Wrote: [ -> ] (05-04-2013, 05:48 PM)FurtherGames Wrote: [ -> ]<bolded text question here>
http://wiki.frictionalgames.com/hpl2/amn...ions#doors Should have the function you're looking for. Specifically, it's this one:
void SetSwingDoorClosed(string& asName, bool abClosed, bool abEffects);
string& asName = "Insert the name of the door here"
bool abClosed = true/false, you want true
bool abEffects = true/false depending on if you want sound to accompany the door closing
And one more thing. I believe the majority of the questions you've asked so far have been answered before and in tutorials on the wiki. Try searching here http://wiki.frictionalgames.com/hpl2/tut..._tutorials and the forum before you post a question. I certainly don't mind answering, but posting a new thread for each scripting question bumps other people's questions down the page which certainly doesn't help them get their questions answered. I usually just post new questions in the same thread as my old, answered one (so long as they are relevant) to avoid spamming everyone
I sort of dislike using that website because it's sort of mashed up.