• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Cameras

Status
Not open for further replies.
Level 7
Joined
Aug 5, 2005
Messages
218
I did something like that in my map, but the camera is a little zoomed in because you're looking through a sniper rifle.

Code:
Sniper Mode
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Sniper Mode 
        Lvl10SniperOff[(Player number of (Owner of (Casting unit)))] Equal to True
    Actions
        Unit - Order (Casting unit) to Stop
        Set Lvl10SniperOff[(Player number of (Owner of (Casting unit)))] = False
        Set Lvl10CameraDist[(Player number of (Owner of (Casting unit)))] = True
        Camera - Set (Owner of (Casting unit))'s camera Distance to target to 0.00 over 0.35 seconds
        Camera - Set (Owner of (Casting unit))'s camera Angle of attack to 360.00 over 0.60 seconds
        Camera - Set (Owner of (Casting unit))'s camera Rotation to (Facing of (Casting unit)) over 0.60 seconds
        Camera - Pan camera for (Owner of (Casting unit)) to ((Position of (Casting unit)) offset by 192.00 towards (Facing of (Casting unit)) degrees) over 0.00 seconds
        Unit - Add Snipe  to (Casting unit)
        Unit - Add Stop Sniping  to (Casting unit)
Code:
Sniper Camera
    Events
        Time - Every 0.20 seconds of game time
    Conditions
        Level Equal to 10
    Actions
        For each (Integer A) from 1 to 8, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Lvl10SniperOff[(Integer A)] Equal to False
                    Then - Actions
                        Camera - Set (Player((Integer A)))'s camera Distance to target to 0.00 over 0.60 seconds
                        Camera - Set (Player((Integer A)))'s camera Angle of attack to 360.00 over 0.60 seconds
                        Camera - Set (Player((Integer A)))'s camera Rotation to (Facing of (Random unit from (Units owned by (Player((Integer A))) of type Solid Snake))) over 0.60 seconds
                        Camera - Pan camera for (Player((Integer A))) to ((Position of (Random unit from (Units owned by (Player((Integer A))) of type Solid Snake))) offset by 192.00 towards (Facing of (Random unit from (Units owned by (Player((Integer A))) of type Solid Snake))) degrees) over 0.00 seconds
                    Else - Actions
 
Level 4
Joined
Jul 5, 2005
Messages
69
Your Answer!!

Check out my map Rifleman Paintball, it's not protected! It's in maps and Arenas category ok?
If you make a map your givin me credit right?
The camera just follows the riflfeman, if you want it to see as the eyes, just zoom in on the distance from target :). Good luck with your map!!
 
Status
Not open for further replies.
Top