Results 1 to 5 of 5

Change camera settings with SCAR to be map specific

  1. #1

    Change camera settings with SCAR to be map specific

    My map turned out in a way where with the original camera settings, you put too much load on the gpu (the cause is a hill so the camera goes up and so the render calls)

    I tried with the override camera setting in worldbuilder and it work except for the fact you have to double backspace to reset to the new settings.

    This is the question, i dont know anything about SCAR, it is possibile to set a function so the camera at the start of the map get a reset (so it takes the new setting) or override the original camera settings?

    if it is possible, could a good man post me the code ready to use (with only the need to change the values and the name)

    thank you very much (i don-t wanna throw away half of my design due to a simple camera facing 90 degrees the wrong way)

  2. #2
    I tried this code but its not working the map is stuck until you menu+resume ( and it has no effect)

    import("ScarUtil.scar")
    import("WCUtil.scar")

    function OnGameSetup()

    player1 = World_GetPlayerAt(1)
    player2 = World_GetPlayerAt(2)
    player3 = World_GetPlayerAt(3)
    player4 = World_GetPlayerAt(4)

    end

    function OnInit()

    ( Camera_SetDefault(15, 25, 100) )

    end

    Scar_AddInit(OnInit)

    what is wrong?

  3. #3
    actually i got it working but it still need the double backspace to change the settings, it there any workaround?

  4. #4
    use this function to set the camera back und its default position after you set the new default

    Code:
    Void  Camera_ResetToDefault( Void  )
     	
    Reset camera position to default home position

  5. #5
    Thank you, today i-ll try and let you now!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •