Car windows closed - People nearby talking. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Car windows closed - People nearby talking. (
/showthread.php?tid=155893)
Car windows closed - People nearby talking. -
Faith - 20.06.2010
Hi,
I'm making a basic windows system here, and it works fine for the first part.
You are talking with rolled up windows, and only peoples within the range of 2 can hear you.
but here comes the tricky part, that i havn't seem to be able to find a solution on.
How can i make it, so that i won't be able to hear other peoples that aren't within the range of 2 - if my vehicles window is rolled up ofcourse.?
I simply use a variable looking like this::
WindowsClosed[vehicleid] to tell me, whether a vehicles cars windows is rolled up or down.
Much appreciated.
Re: Car windows closed - People nearby talking. -
mprofitt - 20.06.2010
Now you are starting to think and implement your thoughts into the script. If it was me, I would modify the Proximity Detector to include car windows and whether the player is in a car or not. This can be done with a few if / then / else's.
Quote:
|
Originally Posted by Faith
Hi,
I'm making a basic windows system here, and it works fine for the first part.
You are talking with rolled up windows, and only peoples within the range of 2 can hear you.
but here comes the tricky part, that i havn't seem to be able to find a solution on.
How can i make it, so that i won't be able to hear other peoples that aren't within the range of 2 - if my vehicles window is rolled up ofcourse.?
I simply use a variable looking like this::
WindowsClosed[vehicleid] to tell me, whether a vehicles cars windows is rolled up or down.
Much appreciated.
|