Sebo85 Posted March 11, 2019 Author 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!
DieFeM Posted March 11, 2019 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
DieFeM Posted March 11, 2019 Posted March 11, 2019 On 3/11/2019 at 1:54 PM, Sebo85 said: 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.
Sebo85 Posted March 11, 2019 Author 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?
DieFeM Posted March 11, 2019 Posted March 11, 2019 Quote 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. Quote 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.
Sebo85 Posted March 11, 2019 Author Posted March 11, 2019 so i can set the doorway xmarker to initially disabled and the script will enable it then?
Sebo85 Posted March 11, 2019 Author 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?
DieFeM Posted March 11, 2019 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)
Recommended Posts