返信先: ARMA3 ミッションエディットスレ
ホーム › フォーラム › TRI Gaming フォーラム › ARMA3 ミッションエディットスレ › 返信先: ARMA3 ミッションエディットスレ
2014年12月11日 4:07 AM
#31591
参加者
Probability of Presenceのグループ対応について。
いい情報が載っていたのでコピペ
1.まず普通にグループを配置し、ウェイポイントをまで設定
2.次にリーダーのイニシャライズに
_temp = [this, 50] execVM "scripts\probability.sqf";
を記述
3.probability.sqf
if (!isServer) exitWith {};
_grp = group (_this select 0);
_prob = _this select 1;
_chance = (random 100);
if (_chance > _prob) then
{
{ deleteVehicle vehicle _x; deleteVehicle _x; } forEach units _grp;
};
これをscriptsフォルダを作成し、ぶっこむ。
補足
_temp = [this, 50] execVM "scripts\probability.sqf";
の50は1/2の確立です。
そこは任意に決めてください。
低くすればするほど存在確率が下がります。