Hi Guys,
currently i´m trying to get in scripting a bit. Now a few questions came up and i would really appreciate if someone could give me a hand. (I´ve used the search-function but haven´t found a helping answer).
Problem / Situation :
I would like to create an "area" where something happens (e.g. fog came up, sound is played, whatever) as long as the player(s) is(are) within this area. When the player(s) is/are leaving the area the effect should fade/stopped/reverted (e.g. fog vanishes, sound stops).
My idea :
Creating an (maybe invisible) marker and checking if there is a player within the markers area. If this is true then the a script should be executed as long as the player is there.
Current development situation :
I have the "happening thing" working fine. But now, how do i create the loop for the player-check and do i need a seperate check if the player is still within "range" or has left the area?
Needed help :
Can anyone give me a rough code-sample how to create this check-loop based on the marker. Just to get into it and then i´ll do the rest.
Thanks a lot in advance
currently i´m trying to get in scripting a bit. Now a few questions came up and i would really appreciate if someone could give me a hand. (I´ve used the search-function but haven´t found a helping answer).
Problem / Situation :
I would like to create an "area" where something happens (e.g. fog came up, sound is played, whatever) as long as the player(s) is(are) within this area. When the player(s) is/are leaving the area the effect should fade/stopped/reverted (e.g. fog vanishes, sound stops).
My idea :
Creating an (maybe invisible) marker and checking if there is a player within the markers area. If this is true then the a script should be executed as long as the player is there.
Current development situation :
I have the "happening thing" working fine. But now, how do i create the loop for the player-check and do i need a seperate check if the player is still within "range" or has left the area?
Needed help :
Can anyone give me a rough code-sample how to create this check-loop based on the marker. Just to get into it and then i´ll do the rest.
Thanks a lot in advance