• 0

    posted a message on Camera bugs at -90 and + 90 degrees

    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;
    
    Posted in: Galaxy Scripting
  • 0

    posted a message on donothing() or waste time inside a while

    I guess I will keep an wait inside the else and use 0.03125 timer, thanks everyone.

    Posted in: Galaxy Scripting
  • 0

    posted a message on donothing() or waste time inside a while

    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

    Posted in: Galaxy Scripting
  • 0

    posted a message on donothing() or waste time inside a while

    I have something like

    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.

    Posted in: Galaxy Scripting
  • To post a comment, please or register a new account.