Hey there.
This should be pretty easy i think but i was wondering if anyone can make me a simple script.
What i would like is, on my project NPC's play a SFX and they interact with other NPC's and have conversations.
And what i would really like is a script that only plays SFX if the NPC is on screen.
for example, if an NPC is talking all the way north of the map, and you're nowhere near him, you shouldnt be able to hear him.
so maybe something like you can hear SFX if they are on screen, OR if i can leave a comment on the event to make it so you can hear it no matter what.
please if i didnt explain it well let me know. and please this would be a really big help. i will do something in return.
This should be pretty easy i think but i was wondering if anyone can make me a simple script.
What i would like is, on my project NPC's play a SFX and they interact with other NPC's and have conversations.
And what i would really like is a script that only plays SFX if the NPC is on screen.
for example, if an NPC is talking all the way north of the map, and you're nowhere near him, you shouldnt be able to hear him.
so maybe something like you can hear SFX if they are on screen, OR if i can leave a comment on the event to make it so you can hear it no matter what.
please if i didnt explain it well let me know. and please this would be a really big help. i will do something in return.