(10-08-2014, 07:09 PM)FlawlessHappiness Wrote: Ok, I tried creating something in a more... picture-like manner.
Hope you understand
Haha dude great tutorial! It does make a whole lot more sense when looking at it that way. Good explanation!
(10-08-2014, 06:59 PM)LDOriginal Wrote:
(10-08-2014, 06:25 PM)Viper85626 Wrote:
(10-08-2014, 05:34 PM)LDOriginal Wrote:
(10-08-2014, 05:25 PM)FlawlessHappiness Wrote: You make me want to create a video for you... I might do ^_^
We'll see.
Haha, but would you be so kind and show me just one more example on how you would script this. I want to add another script area with another sound. Maybe it would make some sense getting it infront of me so i can see the code myself. I try to rationalize but...yeah....lol
So first, you must add the "AddEntityCollideCallback" somewhere in OnStart so the script knows that there will be an area that can be triggered by the player stepping in it. When "Player" enters "SoundArea" the script will call the function called "PlaySound." The function "PlaySound" is located at the bottom of the script here. Now in the brackets of that function, you can script whatever you want to happen when "PlaySound" is called.
Really kind of you to help out. I will test this and get back with the results!
It worked! Thank you!
(This post was last modified: 10-08-2014, 08:14 PM by LDOriginal.)