• 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.

Need help with cam

Status
Not open for further replies.
Level 3
Joined
Aug 14, 2006
Messages
29
Hi all, my trigger looks like this:
  • function Trig_set_cam1_Actions takes nothing returns nothing
    • call SetCameraFieldForPlayer( GetOwningPlayer(udg_c_unit[1]), CAMERA_FIELD_TARGET_DISTANCE, 300.00, 0.50 )
    • call SetCameraFieldForPlayer( GetOwningPlayer(udg_c_unit[1]), CAMERA_FIELD_ANGLE_OF_ATTACK, 300.00, 0.50 )
    • call SetCameraFieldForPlayer( GetOwningPlayer(udg_c_unit[1]), CAMERA_FIELD_ZOFFSET, 100.00, 0.50 )
    • call SetCameraFieldForPlayer( GetOwningPlayer(udg_c_unit[1]), CAMERA_FIELD_ROTATION, GetUnitFacing(udg_c_unit[1]), 0.50 )
    • call SetCameraFieldForPlayer( GetOwningPlayer(udg_c_unit[1]), CAMERA_FIELD_FIELD_OF_VIEW, 125.00, 0.50 )
  • endfunction
  • //===========================================================================
  • function InitTrig_set_cam1 takes nothing returns nothing
    • set gg_trg_set_cam1 = CreateTrigger( )
    • call TriggerRegisterTimerEventPeriodic( gg_trg_set_cam1, 0.01 )
    • call TriggerAddAction( gg_trg_set_cam1, function Trig_set_cam1_Actions )
  • endfunction
As you all might see, c_unit[1]'s cam is changed.. My problem is that i can't look enough forward.. i want it to be first person, but zoomed out so people can see their hero..
Can any one help?
sry for the trigger.. i don't know how to use the tag properly..
 
Status
Not open for further replies.
Top