This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
0
I have something like
while(1) { facing = UnitGetFacing(gv_hero); CameraSetValue(1, c_cameraValueYaw, facing, 0.0625, 100, 10); TriggerDebugOutput(1, FixedToText(facing, 5), true); Wait(0.03125, c_timeGame); }
into an map initialization trigger, its pretty smooth camera until it reachs 90 or - 90 degrees and gets very buggy, anyone know a solution?
edit 1: bugy to buggy.
edit 2: Worked with
while(1) { facing = UnitGetFacing(gv_hero); CameraSetValue(1, c_cameraValueYaw, facing, 0.0625, 0, 0); TriggerDebugOutput(1, FixedToText(facing, 5), true); Wait(0.03125, c_timeGame); } return true;
I guess I will keep an wait inside the else and use 0.03125 timer, thanks everyone.
What I'm trying to do is wait until condition is true. Should I try another way then? since waiting multiple times is not a viable solution.
edit 1: are to is
while(flag) { if(condition) { dosomething(); } else{} }
It does not work(says the function took to long to execute), what kinda of function can I put inside that else? It worked with Wait, is it the best solution? Thanks for your time.
0
I have something like
into an map initialization trigger, its pretty smooth camera until it reachs 90 or - 90 degrees and gets very buggy, anyone know a solution?
edit 1: bugy to buggy.
edit 2: Worked with
0
I guess I will keep an wait inside the else and use 0.03125 timer, thanks everyone.
0
What I'm trying to do is wait until condition is true. Should I try another way then? since waiting multiple times is not a viable solution.
edit 1: are to is
0
I have something like
It does not work(says the function took to long to execute), what kinda of function can I put inside that else? It worked with Wait, is it the best solution? Thanks for your time.