Sebo85 Posted March 11, 2019 Author Share Posted March 11, 2019 okay i managed to get the script done by deleting old scripts i tried to do :DI'm really sorry and thank you so much for your help! Link to comment Share on other sites More sharing options...
DieFeM Posted March 11, 2019 Share Posted March 11, 2019 (edited) No. Why do you replace scriptname with SebosLoftNote_Script? don't do that.Also you must define the properties (wall and doorway) before adding the event to the script. Edited March 11, 2019 by DieFeM Link to comment Share on other sites More sharing options...
DieFeM Posted March 11, 2019 Share Posted March 11, 2019 okay i managed to get the script done by deleting old scripts i tried to do :DI'm really sorry and thank you so much for your help! Nice :) I'm glad you figured it out. Link to comment Share on other sites More sharing options...
Sebo85 Posted March 11, 2019 Author Share Posted March 11, 2019 yea but i had point the doorways and walls to two xmarker, which i used in the script properties instead of directly pointing to the walls and doorways. Will these doorways (they are onysided so i had to put two of them) directly be visible or only after reading the note? Link to comment Share on other sites More sharing options...
DieFeM Posted March 11, 2019 Share Posted March 11, 2019 i had point the doorways and walls to two xmarker, which i used in the script properties instead of directly pointing to the walls and doorways. If it is properly set (Enable Parent), so they mimic the state of the xmarkers, you can absolutely do that.Will these doorways (they are onysided so i had to put two of them) directly be visible or only after reading the note?Everything will be enabled (visible) unless you set them as "initially disabled" in the properties of the reference (the object in the world).Note that if the xmarkers are initially disabled, the linked references will be disabled too. Link to comment Share on other sites More sharing options...
Sebo85 Posted March 11, 2019 Author Share Posted March 11, 2019 so i can set the doorway xmarker to initially disabled and the script will enable it then? Link to comment Share on other sites More sharing options...
DieFeM Posted March 11, 2019 Share Posted March 11, 2019 Right. Link to comment Share on other sites More sharing options...
Sebo85 Posted March 11, 2019 Author Share Posted March 11, 2019 Okay very very cool! Thank you so much!! Do you have any idea how i manage to play some kind of door opening sound after reading the note? Link to comment Share on other sites More sharing options...
DieFeM Posted March 11, 2019 Share Posted March 11, 2019 You need a property for each sound that you want to play, then use Play() to start playing the sound, something like this: OpeningSound.Play(Door) Link to comment Share on other sites More sharing options...
Sebo85 Posted March 11, 2019 Author Share Posted March 11, 2019 can i put it in the same script? Link to comment Share on other sites More sharing options...
Recommended Posts