Next we'll want to start in on our code. As explained earlier, we will be checking each point in small intervals in a loop. So, we need to set up the loop. Create a variable named "Trace Distance" (real) and set its initial value to 0.0. This variable will keep track of how far along the imaginary line we are. Now we'll set up our loop:
while(lv_traceDistance < 50.0) { While Trace Distance is under our max range, 50, we want to run everything between the squiggly brackets: {}
This is where all of our future code is going to go.
lv_traceDistance += 0.5; At the end of the loop we increment our distance from the camera by 0.5 units. Since the maximum distance is 50.0, this loop will run up to 100 times.
}
i dont understand what to do wit this what is it
while(lv_traceDistance < 50.0) { While Trace Distance is under our max range, 50, we want to run everything between the squiggly brackets: {}
This is where all of our future code is going to go.
lv_traceDistance += 0.5; At the end of the loop we increment our distance from the camera by 0.5 units. Since the maximum distance is 50.0, this loop will run up to 100 times.
}
Hi everyone im actually trying to make a TPS style map on sc2 but i dont know how to make that when we left click wih the mouse tue unit attack and do dammage if there is units where we attack
0
@rrowland: Go
hi if someone can helpi that will be apreciated
i dont understand this part
Next we'll want to start in on our code. As explained earlier, we will be checking each point in small intervals in a loop. So, we need to set up the loop. Create a variable named "Trace Distance" (real) and set its initial value to 0.0. This variable will keep track of how far along the imaginary line we are. Now we'll set up our loop:
while(lv_traceDistance < 50.0) { While Trace Distance is under our max range, 50, we want to run everything between the squiggly brackets: {} This is where all of our future code is going to go. lv_traceDistance += 0.5; At the end of the loop we increment our distance from the camera by 0.5 units. Since the maximum distance is 50.0, this loop will run up to 100 times. }
i dont understand what to do wit this what is it while(lv_traceDistance < 50.0) { While Trace Distance is under our max range, 50, we want to run everything between the squiggly brackets: {} This is where all of our future code is going to go. lv_traceDistance += 0.5; At the end of the loop we increment our distance from the camera by 0.5 units. Since the maximum distance is 50.0, this loop will run up to 100 times. }
sorry for bad english
0
@hobbidude: Go
thank but i dont understant what i have to do in the loop and code
what is the code and what is the loop ?
0
Hi everyone im actually trying to make a TPS style map on sc2 but i dont know how to make that when we left click wih the mouse tue unit attack and do dammage if there is units where we attack
If someone can help me that will be apreciated
Sorry for bad english