|
我在做一张战役地图的时候出现了脚本错误,我本来想让主角单位进入矩形区域后,接连几个区域的可见度变为“可见”,同时玩家的视角转到镜头1和镜头2(让触发玩家看2个地方)。。。可是在设完触发器想测试一下地图,地图进不去了,出现了这个错误:
//***************************************************************************
//*
//* Regions
//*
//***************************************************************************
function CreateRegions takes nothing returns nothing
local weathereffect we
set gg_rct_relife = Rect( -11776.0, -12768.0, -11616.0, -12608.0 )
set gg_rct_call_kulouFW = Rect( -8128.0, -15968.0, -7136.0, -14400.0 )
set gg_rct_call_kulou_1 = Rect( -7936.0, -15360.0, -7744.0, -15136.0 )
set gg_rct_call_kulou_2 = Rect( -7936.0, -15072.0, -7744.0, -14848.0 )
set gg_rct_call_kulou_3 = Rect( -7936.0, -15648.0, -7744.0, -15424.0 )
set gg_rct_see_grave = Rect( -5248.0, -13856.0, -4544.0, -13440.0 )
set gg_rct_grave_1 = Rect( -5568.0, -15200.0, -4928.0, -14304.0 )
set gg_rct_grave_2 = Rect( -6304.0, -15936.0, -5536.0, -14656.0 )
set gg_rct_grave_3 = Rect( -8288.0, -16096.0, -6240.0, -14240.0 )
endfunction
//***************************************************************************
//*
//* Cameras
//*
//***************************************************************************
function CreateCameras takes nothing returns nothing
set gg_cam_see_grave_1 = CreateCameraSetup( )
call CameraSetupSetField( gg_cam_see_grave_1, CAMERA_FIELD_ZOFFSET, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_see_grave_1, CAMERA_FIELD_ROTATION, 90.0, 0.0 )
call CameraSetupSetField( gg_cam_see_grave_1, CAMERA_FIELD_ANGLE_OF_ATTACK, 304.0, 0.0 )
call CameraSetupSetField( gg_cam_see_grave_1, CAMERA_FIELD_TARGET_DISTANCE, 1500.0, 0.0 )
call CameraSetupSetField( gg_cam_see_grave_1, CAMERA_FIELD_ROLL, 0.0, 0.0 )
call CameraSetupSetField( gg_cam_see_grave_1, CAMERA_FIELD_FIELD_OF_VIEW, 70.0, 0.0 )
call CameraSetupSetField( gg_cam_see_grave_1, CAMERA_FIELD_FARZ, 5000.0, 0.0 )
call CameraSetupSetDestPosition( gg_cam_see_grave_1, -5260.6, -14628.0, 0.0 )
脚本错误的窗口和发生错误的地图已经在附件上了,请各位仁兄有空帮看下,谢谢了! |
|