Rick01
-
Content Count
4 -
Joined
-
Last visited
-
Medals
Posts posted by Rick01
-
-
Try
!(alive,air1,air2................)
-
Sorry that I have not gotten back to you sooner
Try this out it is a script that I posted under a dif name,(one for work and one for home).
I have not tryed it but it should work
// /////////////////////////////////////////////////////////////////////////////
// / Random spawn Generator
// This SQF Function created using Script Edit v0.7 on 2010-01-18 17:35:20Z
//
// OzeRick
// RandomSpawnGen.sqf
// version 1.0.
//
// this script allows you to spawn any side and number of unit in a random area around a central point
// to use
//1.} place a Functions Module onto map
//2.) place a game logic/Objects/Game logic on map and name it i.e. t1
//3.) You can place the below in the logic or a trigger its up to you
//
// parameters
//nul = [position,area,Number,Distance,Side,] execvm"RandomSpawnGen.sqf";
//nul = [t1,500,20,150,east] execvm "RandomSpawnGen.sqf";
//
// you can change _units = ........
// to
// ["MOL_Officer","MOL_Rifleman","MOL_Medic","MOL_Sold eir_AA","MOL_Soldier_AT","MOL_Soldier_MG"];
// or any other units that you like
// ////////////////////////////////////////////////////////////////////////////////////////////////
_pos = _this select 0;
_area = _this select 1;
_Num = _this select 2;
_dist = _this select 3;
_side = _this select 4;;
_skill = [0.6,1];
_a = "SkeetDisk";// obj to use as spawn place.
_b = “A10â€;// or what every plane you may won’t
for [{_i = 0},{_i < _Num},{_i = _i + 1}] do
{
_newpos = GetPos _pos;
_posX = _newpos select 0;
_posY = _newpos select 1;
if ( isNil "ob_u" ) then { ob_u = 0 };
ob_u = ob_u+ 1;
_mar = format["ob%1", ob_u ];
_mar = _a createVehicle[(_posX + random _area)-_area/2, (_posY + random _area)-_area/2,0];
_unit = [getpos _mar,0,_b,_side] call bis_func_spawnvehicle
[_unit, ( getPos _mar), _dist] call BIS_fnc_taskPatrol;
sleep 0.8;
};
-
HI all
I have use the BIS_fnc_spawnVehicle and BIS_taskpatrol when spawing air vehicle and that works every well.
I have a small script that I will post when I get home tonight
Addaction for one player
in ARMA 2 & OA : MISSIONS - Editing & Scripting
Posted
Name the player in the editor i.e. "P1",
then in your script
P1 addaction .....................