• Some questions.
    13 replies, posted
[img]http://i.imgur.com/Btis3SW.png[/img] Some sort of Ambient, depending on Player 2 range to Player 1 and way round. [highlight](User was banned for this post ("undescriptive thread title" - postal))[/highlight]
uh yes? whats that? whats your question? what are you working on? ._.
What's the question?
How do I make this?
Are you looking for a way to measure distance or something?
[QUOTE=circuitbawx;41836455]Are you looking for a way to measure distance or something?[/QUOTE] Yup, like Track 1 plays all the time, but when you're near player like on scheme I drew, the Track 1 will smoothly change to Track 2.
[QUOTE=Garfield.;41836476]Yup, like Track 1 plays all the time, but when you're near player like on scheme I drew, the Track 1 will smoothly change to Track 2.[/QUOTE] Is this Kyle? What's the purpose of the tracks you're talking about?
[QUOTE=circuitbawx;41836514]Is this Kyle? What's the purpose of the tracks you're talking about?[/QUOTE] Cool ambient I made. Like Track 1 is quiet, Track 2 is less quiet, Track 3 is WOOOOB WOOOB BOBOBO and etc. (This is not dubstep) Also this is for gamemode.
[QUOTE=Garfield.;41836542]Cool ambient I made. Like Track 1 is quiet, Track 2 is less quiet, Track 3 is WOOOOB WOOOB BOBOBO and etc. (This is not dubstep)[/QUOTE] Just turn the volume up.
Dude, I'm talking about lua. [QUOTE=Garfield.;41836554]Also this is for gamemode.[/QUOTE]
[QUOTE=Garfield.;41836580]Dude, I'm talking about lua.[/QUOTE] You need to be more specific.
Track 1: plays all the time. Track 2: 50 meters far from other player Track 3: 25m Track 4: 10m How will this look as Lua code?
[lua]// // Conversions - I have more but you'd only need these really... // // 1 unit = 0.75 inches. // 4/3 units = 1 inch - from this we base our calculations. CONVERSION_UNITS_TO_INCHES = 4/3; // 4/3 units per 1 inch, 16 units per foot CONVERSION_UNITS_TO_FEET = CONVERSION_UNITS_TO_INCHES * 12; // == 16 in game units CONVERSION_UNITS_TO_METERS = CONVERSION_UNITS_TO_FEET * 0.3048; // Do this somewhere where you calculate, then do what you need to do based on that. local _distInMeters = Player1:GetPos( ):Distance( Player2:GetPos( ) ) / CONVERSION_UNITS_TO_METERS[/lua] Please note, Distance is expensive due to Square root function. I'd recommend looking into the Length( ) function but here's something to get you started.
Then something like EmitSound? Also, big thanks.
Sorry, you need to Log In to post a reply to this thread.