• 車種別
  • パーツ
  • 整備手帳
  • ブログ
  • みんカラ+
イイね!
2008年03月20日

ヘリから、兵器投下用スクリプト

ヘリコプターから、地上兵器を投下するためのスクリプト。

まだ、ちょっとした文法ミスがある。


_heli = _this select 0;
_car = _this select 1;
_chute1 = createVehicle ["ParachuteC", _car, [], 20, 'NONE'];
_chute2 = createVehicle ["ParachuteC", _car, [], 20, 'NONE'];
_chute3 = createVehicle ["ParachuteC", _car, [], 20, 'NONE'];
_chute4 = createVehicle ["ParachuteC", _car, [], 20, 'NONE'];


#Update

_heliPos = getPos _heli;
_heliPosX = _heliPos select 0;
_heliPosY = _heliPos select 1;
_heliPosZ = _heliPos select 2;

_chute1Pos = getPos _chute1;
_chute1PosX = _chute1Pos select 0;
_chute1PosY = _chute1Pos select 1;
_chute1PosZ = _chute1Pos select 2;
_chute1 setPos [_chute1PosX, _chute1PosY, 300];

_chute2Pos = getPos _chute2;
_chute2PosX = _chute2Pos select 0;
_chute2PosY = _chute2Pos select 1;
_chute2PosZ = _chute2Pos select 2;
_chute2 setPos [_chute2PosX, _chute2PosY, 300];

_chute3Pos = getPos _chute3;
_chute3PosX = _chute3Pos select 0;
_chute3PosY = _chute3Pos select 1;
_chute3PosZ = _chute3Pos select 2;
_chute3 setPos [_chute3PosX, _chute3PosY, 300];

_chute4Pos = getPos _chute4;
_chute4PosX = _chute4Pos select 0;
_chute4PosY = _chute4Pos select 1;
_chute4PosZ = _chute4Pos select 2;
_chute4 setPos [_chute4PosX, _chute4PosY, 300];


_chuteNewPosZ = _heliPosZ - 10;
?(_chuteNewPosZ < 0) : _chuteNewPosZ = 0;

_car setPos [_heliPosX, _heliPosY, _chuteNewPosZ];
_heading = getDir _heli;
_car setDir _heading;
~0.01
? (release1 == 1) : goto "Drop"
goto "Update"


#Drop

_chute1 setDir _heading;
_chute2 setDir _heading;
_chute3 setDir _heading;
_chute4 setDir _heading;

~0.001

_carPos = getPos _car;
_carPosX = _carPos select 0;
_carPosY = _carPos select 1;
_carPosZ = _carPos select 2;

if (_heliPosZ > 10) then
{
_chute1 setPos [_carPosX + 1.5, _carPosY - 1.5, _heliPosZ - 18];
_chute2 setPos [_carPosX + 1.5, _carPosY + 1.5, _heliPosZ - 18];
_chute3 setPos [_carPosX - 1.5, _carPosY + 1.5, _heliPosZ - 18];
_chute4 setPos [_carPosX - 1.5, _carPosY - 1.5, _heliPosZ - 18];
};

#DropUpdate

_chute1Pos = getPos _chute1;
_chute1PosX = _chute1Pos select 0;
_chute1PosY = _chute1Pos select 1;
_chute1PosZ = _chute1Pos select 2;

_chuteNewPosZ = _chute1PosZ - 10;
?(_chuteNewPosZ < 0) : _chuteNewPosZ = 0;

_car setPos [_chute1PosX, _chute1PosY, _chuteNewPosZ];

_chute2 setPos [_chute1PosX, _chute1PosY + 3, _chute1PosZ];
_chute3 setPos [_chute1PosX - 3, _chute1PosY + 3, _chute1PosZ];
_chute4 setPos [_chute1PosX - 3, _chute1PosY, _chute1PosZ];

~0.01
? (_chute1PosZ > 3) : goto "DropUpdate"


ブログ一覧 | ArmA・ARMA2 Mission | 日記
Posted at 2008/03/20 23:42:54

イイね!0件



タグ

今、あなたにおすすめ

ブログ人気記事

鉄道を引く為地元に尽くした土地の名 ...
takeshi.oさん

BMW 320d(G20)の10月 ...
myzkdive1さん

お疲れ様でした🙇
ゆう@LEXUSさん

30年目のペアリング
ふじっこパパさん

チャッピーに旅の計画を 「2026 ...
なうなさん

チャッピーで動画!
たけぼこさん

この記事へのコメント

コメントはありません。

プロフィール

「鉄オタにおすすめのゲーム http://cvw.jp/b/137019/48277892/」
何シテル?   02/24 14:02
■ペット ネイチャーアクアリウムにハマって、熱帯魚買っています。 60cm水槽と30cm水槽あります。 ■ゲーム 「ARMA3」や「MikuMikuDa...
みんカラ新規会員登録

ユーザー内検索

<< 2026/11 >>

日 月 火 水 木 金 土
1234567
891011121314
15161718192021
22232425262728
2930     

ブログカテゴリー

リンク・クリップ

フロントブレーキダブルディスク化 
カテゴリ:その他(カテゴリ未設定)
2023/01/20 19:19:09
ボンネット内デッドニング!準備編 
カテゴリ:その他(カテゴリ未設定)
2013/09/08 21:24:21
ボンネット内デッドニング! 
カテゴリ:その他(カテゴリ未設定)
2013/09/08 21:23:17

愛車一覧

ダイハツ タントエグゼカスタム ダイハツ タントエグゼカスタム
今日決めてきました。 燃費もよくなったので、楽しみです。 主に通勤用として使います
スバル サンバー スバル サンバー
トランポ専用車として2023.10.04購入。 購入時の走行距離13万8千キロ
その他 その他 その他 その他
Roland のV-Drum TD-12KX-Sです。 Girls Dead Monst ...
トヨタ セリカ トヨタ セリカ
学生時代に乗っていた車です。 写真は、第1回鈴鹿ワールドラリーフェスタ時のものです。 ...

過去のブログ

2025年
01月02月03月04月05月06月
07月08月09月10月11月12月
2024年
01月02月03月04月05月06月
07月08月09月10月11月12月
2023年
01月02月03月04月05月06月
07月08月09月10月11月12月
2022年
01月02月03月04月05月06月
07月08月09月10月11月12月
2021年
01月02月03月04月05月06月
07月08月09月10月11月12月
2020年
01月02月03月04月05月06月
07月08月09月10月11月12月
2019年
01月02月03月04月05月06月
07月08月09月10月11月12月
2018年
01月02月03月04月05月06月
07月08月09月10月11月12月
2017年
01月02月03月04月05月06月
07月08月09月10月11月12月
2016年
01月02月03月04月05月06月
07月08月09月10月11月12月
2015年
01月02月03月04月05月06月
07月08月09月10月11月12月
2014年
01月02月03月04月05月06月
07月08月09月10月11月12月
2013年
01月02月03月04月05月06月
07月08月09月10月11月12月
2012年
01月02月03月04月05月06月
07月08月09月10月11月12月
2011年
01月02月03月04月05月06月
07月08月09月10月11月12月
2010年
01月02月03月04月05月06月
07月08月09月10月11月12月
2009年
01月02月03月04月05月06月
07月08月09月10月11月12月
2008年
01月02月03月04月05月06月
07月08月09月10月11月12月
2007年
01月02月03月04月05月06月
07月08月09月10月11月12月
2006年
01月02月03月04月05月06月
07月08月09月10月11月12月
2005年
01月02月03月04月05月06月
07月08月09月10月11月12月
ヘルプ| 利用規約| サイトマップ

ディーラー下取りの前に!

電話番号入力なしで 愛車の相場がわかる! 車種名の 今の相場がわかる

査定車両のイメージ

表示名さんの愛車

車種名

あなたの愛車の相場はいくら?
WEBで相場が分かる・電話営業なし・最短1時間で提示
© LY Corporation