[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > World Editor Help Zone


World Editor Help Zone Ask general questions about World Editor features and use in this forum. If you need help fixing a trigger, please post it in Triggers & Scripts. Please review the forum rules before posting.

Closed Thread
 
Thread Tools
Old 06-14-2009, 06:33 AM   #1 (permalink)
Registered User bobo11
User
 
bobo11's Avatar
 
Join Date: Jun 2008
Posts: 126
bobo11 has little to show at this moment (1)
Simple camera question

Just a noob question here guys, how do I zoom the camera out for a player? I don't like the camera being zoomed in so much, and my map is large, so I need the camera zoomed out for all players.

Cheers
bobo11 is offline  
Old 06-14-2009, 07:18 AM   #2 (permalink)
Administrator Pharaoh_
It's pixel WarCraft!
 
Pharaoh_'s Avatar
Administrator
 
Join Date: Nov 2008
Posts: 7,679
Pharaoh_ has been here far too long (2883)Pharaoh_ has been here far too long (2883)Pharaoh_ has been here far too long (2883)Pharaoh_ has been here far too long (2883)Pharaoh_ has been here far too long (2883)Pharaoh_ has been here far too long (2883)
Merit Badge - Level 0: This user has proven to be extremely valuable to the Warcraft III Modding Community. User of the Year: 2011 Short Story Contest #6 - Winner: When Death Reflects Life Voice Acting Contest #2 - Winner: Dark Angel 
Camera
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 12
Loop - Actions
Camera - Set Player (IntegerA)'s camera Height Offset to Value over 0.1 seconds
The Player (IntegerA) is from (Player - Convert Player to Index) and the whole action is "Camera - Set Camera Field (Timed)".
__________________
Pharaoh_ is offline  
Old 06-14-2009, 02:13 PM   #3 (permalink)
Registered User Storyyeller
User
 
Join Date: May 2009
Posts: 228
Storyyeller has little to show at this moment (24)Storyyeller has little to show at this moment (24)Storyyeller has little to show at this moment (24)
I don't think that's right.

You want target distance, not height offset.

Also, since using the mousewheel, insert or delete keys causes the camera to revert back to the default, you'll need to either keep applying it constantly, or give the players a chat command. (The ever popular -zoom x)
Storyyeller is offline  
Old 06-16-2009, 02:43 PM   #4 (permalink)
Registered User ALiEN95
User
 
ALiEN95's Avatar
 
Join Date: Mar 2009
Posts: 1,163
ALiEN95 will become famous soon enough (114)ALiEN95 will become famous soon enough (114)ALiEN95 will become famous soon enough (114)
Im not sure if that is possible ....
ALiEN95 is offline  
Old 06-16-2009, 03:53 PM   #5 (permalink)
Registered User Storyyeller
User
 
Join Date: May 2009
Posts: 228
Storyyeller has little to show at this moment (24)Storyyeller has little to show at this moment (24)Storyyeller has little to show at this moment (24)
Of course it's possible

Here's how the zoom command from my map looks

Jass:
function chatZoom takes integer p, real x returns nothing
    if x<500 then        //set limits on how far the player can zoom in and out
        set x=500
    elseif x>4500 then
        set x=4500
    endif
    if GetLocalPlayer()==Player(p) then
        call SetCameraField(CAMERA_FIELD_TARGET_DISTANCE,x,0)
    endif
endfunction

function FuncChatEvent takes nothing returns nothing
    local integer p = GetPlayerId(GetTriggerPlayer())
    local string s = GetEventPlayerChatString()
    local real arg1
    local integer arg2
   
    // Other chat commands omitted
   
    if SubString(s,0,5) == "-zoom" then
        set arg1 = S2R(SubString(s,6,StringLength(s)))
        call chatZoom(p,arg1)  
    endif
endfunction

// Trigger initialization junk omitted
Storyyeller is offline  
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with a camera question cibernator World Editor Help Zone 2 02-08-2009 07:47 PM
Camera question. Al.Ghouti World Editor Help Zone 4 01-06-2009 11:45 AM
[Trigger] camera question Just_Spectating Triggers & Scripts 12 05-11-2008 08:22 PM
camera question [Inkognito] Map Development 1 11-30-2005 07:43 AM

All times are GMT. The time now is 01:43 PM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle