Camera sYstem

Status
Not open for further replies.
Level 9
Joined
Mar 31, 2011
Messages
496
I dont know how to change The_Floods camera system into these:
When A player enters a particular region, the camera will enable to the entering unit :eekani:
  • CameraSystem Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- ---- --------
      • -------- Set this Integer to how many players there shall be in the map. --------
      • -------- ---- --------
      • Set MaxPlayers = 1
      • -------- ---- --------
      • -------- Not neccessary (But you have to access this [CameraUnit] variable to one unit for every player). --------
      • -------- ---- --------
      • Set CameraUnit[1] = Ichigo Kurosaki 0003 <gen>
      • -------- ---- --------
      • -------- If you set this to true, all players will be able to stuck the camera at a friendly unit when a friendly unit is selected. --------
      • -------- If you set this to false, all players can only select their own units to stuck the camera. --------
      • -------- ---- --------
      • Set AllowCheckOtherFriends = True
      • -------- ---- --------
      • -------- This will set all the [CameraVariables] to default. --------
      • -------- ---- --------
      • For each (Integer A) from 1 to MaxPlayers, do (Actions)
        • Loop - Actions
          • Set AngleofAttack[(Integer A)] = 345.00
          • Set DistanceFromTarget[(Integer A)] = 2000.00
          • Set Rotation[(Integer A)] = 90.00
          • Set CameraEnabled[(Integer A)] = True
          • -------- ---- --------
          • -------- Change the maximum and minimum camera options --------
          • -------- ---- --------
          • -------- This is the maximum distance the camera can be from an unit. --------
          • Set MaxDistance[(Integer A)] = 2000.00
          • -------- This is the minimum distance the camera can be from an unit. --------
          • Set MinDistance[(Integer A)] = 400.00
          • -------- This is how far up the camera can be, less number = higher. --------
          • Set MaxAngleOfAttack[(Integer A)] = 270.00
          • -------- This is how far down the camera can be, high number = lower --------
          • Set MinAngleOfAttack[(Integer A)] = 340.00
 
Level 9
Joined
Mar 31, 2011
Messages
496
Thanks to you, well that work out but I have another problem.

and i forgot to tell, also this, how to enable the auto rotation when entering region instead
of typing -ar. I tried changing unit enters the region but it didn't work out.

  • CameraAutoRotate
    • Events
      • Player - Player 1 (Red) types a chat message containing -ar as An exact match
      • Player - Player 2 (Blue) types a chat message containing -ar as An exact match
      • Player - Player 3 (Teal) types a chat message containing -ar as An exact match
    • Conditions
    • Actions
      • For each (Integer A) from 1 to MaxPlayers, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering player) Equal to (Player((Integer A)))
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • AutoRotate[(Integer A)] Equal to True
                • Then - Actions
                  • Set PGroup = (Player group((Player((Integer A)))))
                  • Game - Display to PGroup for 3.00 seconds the text: |cffffcc00Auto-Rota...
                  • Set AutoRotate[(Player number of (Triggering player))] = False
                  • Custom script: call DestroyForce(udg_PGroup)
                • Else - Actions
                  • Set PGroup = (Player group((Player((Integer A)))))
                  • Game - Display to PGroup for 3.00 seconds the text: |cffffcc00Auto-Rota...
                  • Set AutoRotate[(Player number of (Triggering player))] = True
                  • Custom script: call DestroyForce(udg_PGroup)
            • Else - Actions
And another here :grin:

when unit enters another region
- - disable the camera auto rotation system.
 
Level 9
Joined
Mar 31, 2011
Messages
496
Uhm... specifically, another camera system which is auto-rotation, you just fixed the camera lock system when unit enters a particular region. But auto-rotation is enabled by typing -ar, but when I changed it to A unit Enters the Region it does not work.

The second thing is when the unit leaves that region, the auto-rotation system will be disabled but the camera-lock system you just fixed will stay enabled.
 
Level 9
Joined
Mar 31, 2011
Messages
496
  • CameraAutoRotate
  • Events
  • Unit - A unit enters the training area
  • Conditions
  • Actions
  • For each (Integer A) from 1 to MaxPlayers, do (Actions)
  • Loop - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Triggering player) Equal to (Player((Integer A)))
  • Then - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • AutoRotate[(Integer A)] Equal to True
  • Then - Actions
  • Set PGroup = (Player group((Player((Integer A)))))
  • Game - Display to PGroup for 3.00 seconds the text: |cffffcc00Auto-Rota...
  • Set AutoRotate[(Player number of (Triggering player))] = False
  • Custom script: call DestroyForce(udg_PGroup)
  • Else - Actions
  • Set PGroup = (Player group((Player((Integer A)))))
  • Game - Display to PGroup for 3.00 seconds the text: |cffffcc00Auto-Rota...
  • Set AutoRotate[(Player number of (Triggering player))] = True
  • Custom script: call DestroyForce(udg_PGroup)
  • Else - Actions
This is what I mean,
This doesn't work :cry:
 
Status
Not open for further replies.
Top