--****************************************************************************** --[[ @brief test_一般的な固定敵(例:砲台) @author Yoshikazu KOIDE ]] --****************************************************************************** -- 本ミッション用定数 DIST_LADER = 1500; -- レーダー距離 DIST_OPTICAL = 2000; -- 視界 WAIT_MIN = 0.5; WAIT_MAX = 0.5; TRIGGER_MIN = 0.3; TRIGGER_MAX = 0.5; LOE_FLG = false; LOCK_ON_FLG = false; -- 依存ファイル dofile("game:\\common\\airesource\\script\\include\\include.lua"); -- スクリプト初期化 function InitialSetup( context) -- 最初のオペレーションレイヤーを作成する。 --== 移動 -- 最初のオペレーションレイヤーを作成する。 AddInitialLayer_EveryFrame( context, "InitMove", "Move"); --== 攻撃 -- 最初のオペレーションレイヤーを作成する。 AddInitialLayer_EveryFrame( context, "InitAttack", "Attack"); DefaultSetup( context, false); -- /////ターゲット補足関数 Targetting_CatchUpWithConeInSide( context, DIST_LADER, 180); -- 1000m, 360 /レーダー end -- 初期化する。 RegistInitializeFuncitonName( "InitialSetup"); --///////////////////////////////////////////////////////////////////////////////////////////// --///////////////////////////////////////////////////////////////////////////////////////////// --///////////////////////////////////////////////////////////////////////////////////////////// --****************************************************************************** --[[ @brief 移動 ]] --****************************************************************************** function InitMove() debug_out("testメイン関数初期化。"); end function Move( context) Op_RandomWalk( context , OperationIdentifier( 1 ) , 4 , 7 , 1 , nil , 50 , 1.5 ); end --****************************************************************************** --[[ @brief test 攻撃 ]] --****************************************************************************** function InitAttack() -- end -- function Attack( context) local dist = GetToTargetDistance( context); Op_ShootMachinegun( context , OperationIdentifier( 11 ) , 8 , 10 , 1 , nil , WEAPON_ID__MAIN , WAIT_MIN , WAIT_MAX , TRIGGER_MIN , TRIGGER_MAX , LOE_FLG , LOCK_ON_FLG ); end