HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Third person cammera help

05-18-2006, 10:03 PM#1
grupoapunte
Hello i want to make a third person cammera for a multiplayer map and since i have to make an event that fires a trigger every 0.6 sec i would like to know if its posible to make that trigger local for each player to avoid desyncs and how to do it

this is what i have done so far:

Collapse JASS:
function Cam_Group takes nothing returns nothing
call SetCameraFieldForPlayer( GetEnumPlayer(), CAMERA_FIELD_ZOFFSET, ( 100.00 + ( I2R(GetTerrainCliffLevelBJ(GetUnitLoc(udg_Heros[GetConvertedPlayerId(GetEnumPlayer())]))) * 50.00 ) ), 0.60 )
        call SetCameraFieldForPlayer( GetEnumPlayer(), CAMERA_FIELD_ANGLE_OF_ATTACK, 340.00, 0.60 )
        call SetCameraFieldForPlayer( GetEnumPlayer(), CAMERA_FIELD_TARGET_DISTANCE, 1200.00, 0.60 )
        call SetCameraFieldForPlayer( GetEnumPlayer(), CAMERA_FIELD_ROTATION, GetUnitFacing(udg_Heros[GetConvertedPlayerId(GetEnumPlayer())]), 0.60 )
endfunction

As you can see this are only the cammera stats for each player in order to make it a third person cammera

Thanks