Camera

jak3u

New Member
Reaction score
0
WARNING: Very noob question!!!

Hey, uhmm how can I make it so that for the whole game, the camera is a bit far away from the map?
 

LordXavier

TH.net Regular
Reaction score
16
this is a very good tutorial to help you with everything you need for cameras. if it's unclear tell me and I'll do my best to clarify
 

jak3u

New Member
Reaction score
0
this is a very good tutorial to help you with everything you need for cameras. if it's unclear tell me and I'll do my best to clarify

ohh noo... lol, haha that's too advance for me
all i wanna do is set the in game camera so that you can see most of the map
and play with that in game camera in that certain height.
I'm not sure if it's "camera" haha... P;
 

LordXavier

TH.net Regular
Reaction score
16
here, i took this right out of Blizzard's WarChasers map

Trigger:
  • Disallow Mousewheel
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Set (Picked players)'s camera Distance to target to 1650.00 over 0.50 seconds
          • Camera - Set (Picked players)'s camera Angle of attack to 304.00 over 0.50 seconds
          • Camera - Set (Picked players)'s camera Roll to 0.00 over 0.50 seconds
          • Camera - Set (Picked players)'s camera Rotation to 90.00 over 0.50 seconds

If you put that in, it makes it so the player cannot angle rotate or roll (mousewheel) their camera. the values are set to the default. just play around with them to what you want.
 

jak3u

New Member
Reaction score
0
here, i took this right out of Blizzard's WarChasers map

Trigger:
  • Disallow Mousewheel
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Set (Picked players)'s camera Distance to target to 1650.00 over 0.50 seconds
          • Camera - Set (Picked players)'s camera Angle of attack to 304.00 over 0.50 seconds
          • Camera - Set (Picked players)'s camera Roll to 0.00 over 0.50 seconds
          • Camera - Set (Picked players)'s camera Rotation to 90.00 over 0.50 seconds

If you put that in, it makes it so the player cannot angle rotate or roll (mousewheel) their camera. the values are set to the default. just play around with them to what you want.

Ermm... lol i think i messed up my question.
haha, uhmm you know the map battleships?
you know who they can type -setcamera 300 (ithink)
and the view moves away from the terrain.
your point of view goes farther from the terrain.

Although, thanks for that, haha
I can use that for my game :D
 

Dest

New Member
Reaction score
26
Then you have to do trigger that when a player types a command with a specific number, you change the value to get the camera far away.

EDIT: 200 posts o_O
 

jak3u

New Member
Reaction score
0
Then you have to do trigger that when a player types a command with a specific number, you change the value to get the camera far away.

EDIT: 200 posts o_O

Well, how do I get the camera far away? -.-'
Like which one is it from the action?

Event: Map Initialization
Action: ??
 

Dest

New Member
Reaction score
26
I edited LordXavier's triggers a bit:

Trigger:
  • Camera
    • Events
      • Player - Player 1 (Red) types a chat message containing -setcam 300 as A substring
    • Conditions
    • Actions
      • Camera - Set (Picked players)'s camera Distance to target to 1300.00 over 0.50 seconds


The default (If I believe) is 1000 so if you want 300 camera, simply do 1300 as distance. This is only a trigger, so it's not going to work unless you add some actions.
 

LordXavier

TH.net Regular
Reaction score
16
what i put for default, i am 100% is default. i locked my WE to game camera settings, made a camera, set to current view, and looked at the camera's info.
 

UlquiorrA

New Member
Reaction score
0
i take no credit for this

found this off another thread, dont know where it is now
rename the trigger to <zoom test>
edit -> convert to text, replace all the writing with this:
JASS:
function Zoom_Conditions takes nothing returns boolean
    return SubString(GetEventPlayerChatString(), 0, StringLength(&quot;-zoom &quot;)) == &quot;-zoom &quot;
endfunction

function Zoom_Actions takes nothing returns nothing
    local integer i = S2I(SubString(GetEventPlayerChatString(), 6, StringLength(GetEventPlayerChatString())))
    if GetLocalPlayer() == GetTriggerPlayer() then
        call SetCameraField(CAMERA_FIELD_TARGET_DISTANCE, i, 0 )
    endif
endfunction
//===========================================================================
function InitTrig_zoom_test takes nothing returns nothing
    local trigger t = CreateTrigger()
    local integer i = 0
    loop
        exitwhen i &gt; 11
        call TriggerRegisterPlayerChatEvent( t, Player(i), &quot;-zoom &quot;, false )
        set i = i + 1
    endloop
    call TriggerAddCondition( t, Condition( function Zoom_Conditions ) )
    call TriggerAddAction( t, function Zoom_Actions )
endfunction

i hope this is what ur looking for

EDIT: found where it came from http://www.thehelper.net/forums/showthread.php?t=121559&highlight=zoom
 

jak3u

New Member
Reaction score
0
Oh nvm, haha I got it. Thanks :D
I did
Event: Map Initialization
Action: Camera - Set Player 1 (Red)'s camera Height Offset to 1300.00 over 1.00 seconds

Thanks :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top