------------------------------------------------------------------ -- \author miyazaki -- \date 2010/07/28 ------------------------------------------------------------------ -- 戦死報告〜 sa00bのワープ処理 local id = ccGetScriptId(); -- 奥から来た時以外は無効 local coord = ccGetNextCoordName(); if coord ~= "mdmy_01" then MobUtil_SetMobDisp( id, false ); ccSuspendScript(); end ccSuspendScript(); -- ロック ccSetAdvPlayerLockOperate( id, false ); ccSetAdvPlayerState( id, CCD_ADV_CHARA_STATE_WAIT ); ccSetAdvSupportLockOperateAll( false ); MobUtil_SetMobDisp( id, false ); local targetDir = 0; local moveDist = 1000; ccInitAdvPlayerRotation( id, 0, 0, targetDir ); local pos = ccGetPlayerPosition( id ); local dir = ccGetPlayerDirection( id ); dir = ccAdvEventVector3Normalize( dir ); dir = ccAdvEventVector3Scale( dir, moveDist ); local targetPos = ccAdvEventVector3Add( pos, dir ); -- 移動させる ccWalkAdvPlayer( id, targetPos.x, targetPos.y, targetPos.z ); ccSetAdvMobFade( id, 0, 255, 60 ); ccSuspendScript(); ccSetAdvPlayerState( id, CCD_ADV_CHARA_STATE_WAIT ); -- エリア変更 ccChangeAreaAndCoord( id, "sa00a", "mdmy_01" ); --ccOnEventFlag( CCD_EVENT_FLAG_WARP_MOVE );