--********************************************************************************* -- 雲海戦(大型輸送車両移動アニメ用ダミポリ) --********************************************************************************* LoadEventStdScriptFile( CURR_DLLUA_INSTANCE ); LoadMissionConstValueAuto( "240" ); ----------------------------------------------------------------------------------- -- 定数 ----------------------------------------------------------------------------------- CONST__VALUE_OF_ANIME_STOP = -1; -- アニメーション停止 ----------------------------------------------------------------------------------- -- 初期化 ----------------------------------------------------------------------------------- function Initial( eventOperation ) LogEvent( "■大型輸送車両ダミポリ:初期化開始" ); local ctrl = eventOperation:GetObjectEventInterface(); ON_RECIEVE_USER_MESSAGE( eventOperation, m240_CONST__CODE_ID_OF_USERMSG__DUMMY_POLY_CTRL , m240_CONST__MSG_ID_OF_USERMSG__DEAD , m240_CONST__MSG_ID_OF_USERMSG__DEAD , "OnDead"); ON_RECIEVE_USER_MESSAGE( eventOperation, m240_CONST__CODE_ID_OF_USERMSG__DUMMY_POLY_CTRL , m240_CONST__MSG_ID_OF_USERMSG__START , m240_CONST__MSG_ID_OF_USERMSG__START , "OnStart"); -- ▼描画OFF ctrl:SetEventPropertyMySelf( false , false , false ); LogEvent( "■大型輸送車両ダミポリ:初期化終了" ); end ----------------------------------------------------------------------------------- -- 大型輸送車両死亡 ----------------------------------------------------------------------------------- function OnDead( eventOperation ) LogEvent( "■大型輸送車両ダミポリ:大型輸送車両死亡を受信" ); local ctrl = eventOperation:GetObjectEventInterface(); -- ctrl:PauseAnime( CONST__VALUE_OF_ANIME_STOP ); ctrl:SetAnimeUpdateScaleIntp( 0 , m240_CONST__TIME_UNTIL_STOP__AFTER_DEAD ); end ----------------------------------------------------------------------------------- -- 大型輸送車両移動開始時 ----------------------------------------------------------------------------------- function OnStart( eventOperation ) LogEvent( "■大型輸送車両ダミポリ:大型輸送車両移動開始を受信" ); local ctrl = eventOperation:GetObjectEventInterface(); ctrl:SetAnime( m240_CONST__ANIME_ID_OF_VEHICLE__DUMMY_POLY , false ); ctrl:SetAnimeUpdateScale( m240_CONST__RATE_OF_VEHICLE__DUMMY_POLY ); -- ▼アニメーション終了を監視 ON_END_OF_CURRENT_ANIME( eventOperation , "OnEndOfAnime" ); end ----------------------------------------------------------------------------------- -- アニメーション終了 ----------------------------------------------------------------------------------- function OnEndOfAnime( eventOperation ) LogEvent( "■大型輸送車両ダミポリ:アニメーション終了" ); eventOperation:SetEventPropertyGroup( m240_GRP_ALL_PARTS_OF_VEHICLE , false , false , false ); end