

peacefull Nation
Member-
Content Count
54 -
Joined
-
Last visited
-
Medals
Everything posted by peacefull Nation
-
i found this code on unknowncheats website. it was for arma 2 spawning parachute cows with airplane. if (isnil "fsdandposanpsdaon" ) then {fsdandposanpsdaon=0}; if (fsdandposanpsdaon==0) then { player addweapon "ItemGPS"; fsdandposanpsdaon=1; }; closedialog 0; sleep 0.5; TitleText [format["Click on the map where you want paracows"], "PLAIN DOWN"]; openMap [true, false]; sCode = 'hint "COWS INCOMING, GET TO COVER";'; sCode = sCode + ' _pos = [(cTargetPos select 0) + random 100, (cTargetPos select 1) + random 100, 100];'; sCode = sCode + ' PLANE1 = createVehicle ["C130J", [(_pos) select 0,(_pos) select 1,500], [], 0, "FLY"];'; sCode = sCode + 'cpbLoops = 15;'; sCode = sCode + 'cpLoopsDelay = 0.13;'; sCode = sCode + 'for "_i" from 0 to cpbLoops do {'; sCode = sCode + ' _pos1 = [(cTargetPos select 0)+random 100, (cTargetPos select 1)+random 100];'; sCode = sCode + ' _chute= createvehicle ["ParachuteC", [(_pos1) select 0,(_pos1) select 1], [], 0, "FLY"];'; sCode = sCode + ' _cow=group player createunit ["Cow04", [(_pos1) select 0,(_pos1) select 1,152], [], 0, "FORM"];'; sCode = sCode + ' _cow attachTo [ _chute, [0,0,0]];' ; sCode = sCode + 'sleep cpLoopsDelay;};'; sCode = sCode + 'cTargetPos = nil;cpbLoops = nil;cpLoopsDelay = nil;'; onMapSingleClick "cTargetPos = _pos;[] spawn compile sCode; onMapSingleClick '';true;"; i ran this code the map opened and i clicked but no airplane came and dropped , wil love this working version of it.
-
Help with this code
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
rather then being negetive and show me nobody cares if i leave or stay no need for that , i dont care also , why not just be positive and move on dont make try and make things difficule , a simple question was posted but people just have unnessasry doubts like cheating etc , i purchased the game + i have full owner ship and rights what i want to do with it , i have a big list of group of friend i play with online in our/his./her server and we love making cheats to have fun or experiment so why is this not allowed in forum or who is people to say am not allowed to use it. -
Help with this code
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Dear Moderators so been 5 hours and not approved please tell me if you will approve it or not will appreciate it , il leave this forum -
Help with this code
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
i have this code am learning from original part of the code was getPos Player i know how this works very well now am trying to replace getPos Player with onmapsingleclick way here is my code private ["_side", "_Squad1", "_leader"]; private _pos = []; _side = createCenter EAST; openMap [true, false]; mapPosition = []; onMapSingleClick {mapPosition = _pos;}; _pos = mapPosition; // store it _Squad1 = [_pos, _side, ["o_soldier_TL_F", "O_soldier_AA_F", "o_soldier_AA_F", "o_soldier_AA_F"], [], [], [0.3, 0.6]] call BIS_fnc_spawnGroup; [_pos] spawn BIS_fnc_guiMessage; mapPosition = nil; _leader = leader _Squad1; _leader move (getPosATL player); _Squad1 setCombatMode "RED"; _Squad1 setBehaviour "Aware"; 0 = _Squad1 spawn { while {true} do { sleep 5; if ((player distance (leader _this)) > 3000) exitWith { { deleteVehicle _x; } forEach (units _this); }; }; }; while {true} do { sleep 5; if (({ alive _x} count (units _Squad1)) == 0) exitWith { { deleteVehicle _x; } forEach (units _squad1); deleteGroup _Squad1; }; _leader = leader _Squad1; if ((unitReady _leader) && {(alive _leader)}) then { sleep 10; if (({ alive _x} count (units _Squad1)) != 0) then { _leader = leader _Squad1; _leader move (getPosATL player); _Squad1 setCombatMode "RED"; _Squad1 setBehaviour "Aware"; }; }; }; as u can se this line here _Squad1 = [_pos, _side, ["o_soldier_TL_F", "O_soldier_AA_F", "o_soldier_AA_F", "o_soldier_AA_F"], [], [], [0.3, 0.6]] call BIS_fnc_spawnGroup; the _pos i want on mapclick pos to go their , i tried adding the onmapclick code but its not working am sure am missing something out. -
Help with this code
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Tajin sir thanks. also i want to se sometimes experienced forum users ask from us so that they can help us further , il be honest if i knew what to do or how to start of then i would have posted it , i just dont thats why i make a thread asking people how to do this and that and when u post a small short code it benifits me alot , i learn alot from it .. i am a fast learning but first i need to understand how each value is put together. i searched many parachutes script and many instructions say put xxx code in init.sqf so this part confuses me , where is this located. all the things i do is not mission editing its for multiplayer game with friends sir using tunggle. by the way i found this code Para = { private ["_pos","_chute","_location","_locationSize","_dir","_dest","_transport","_transportGrp","_wp","_grp"]; if (!isServer) exitWith {}; /* declare variables etc */ _locMark = _this select 0; _location = gerMarkerPos _locMark; _locationSizearray = (getMarkerSize _locMark); _locationSize = _locationSizearray select 0; _dir = random 359; _pos = [_location, 2500, _dir] call bis_fnc_relPos; _dest = [_location,2500, (_dir - 180)] call bis_fnc_relPos; _transport = [_pos,(_dir - 180),"O_Heli_Light_02_unarmed_F",EAST] call BIS_fnc_spawnVehicle; //player setPos _pos; _transportGrp = (_transport select 2); {_x setBehaviour "CARELESS"; _x flyinHeight 60;} forEach units _transportGrp; _wp = _transportGrp addWaypoint [_location,(_locationSize - (_locationSize / 10)),0]; _wp = _transportGrp addWaypoint [_dest,0,1]; _wp setWaypointSpeed "FULL"; _grp = [_pos, EAST, (configfile >> "CfgGroups" >> "EAST" >> "OPF_F" >> "Infantry" >> "OIA_InfSquad"),[],[],[0.25,0.4]] call bis_fnc_spawnGroup; {_x MoveInCargo (_transport select 0); _x assignasCargo (_transport select 0)} forEach units _grp; waitUntil {sleep 1;(getPos (_transport select 0)) distance _location < (_locationSize + (_locationSize / 10))}; /* Initial Drop */ { unAssignVehicle _x; _x allowDamage false; moveOut _x; sleep 0.35; _chute = createVehicle ["NonSteerable_Parachute_F", (getPos _x), [], 0, "NONE"]; _chute setPos (getPos _x); _x moveinDriver _chute; _x allowDamage true; sleep 0.5; } forEach units _grp; /* Assign a task */ //[_grp, _location, _locationSize] call CBA_fnc_taskAttack; null = [leader _grp, _locMark, "spawned", "showmarker", "full"] execVM "scripts\UPSMON.sqf"; /* Initiate CleanUp */ _i = 0; waitUntil {sleep 1;_i = _i + 1; ((getpos (_transport select 0)) distance _location > 1750) || _i >= 70;}; {deleteVehicle _x} foreach units _transportGrp; deleteGroup _transportGrp; deleteVehicle (_transport select 0); /* Return handle */ /* _____________ */ _grp }; i execut that globally using this code nothing happens. i want code like this below i mean simple. attach chicken to players head , posted in other site i found _expl1 = "Alsatian_Random_F" createVehicle position player; _expl1 attachTo [player, [-0.1, 0.1, 0.15], "Head"]; _expl1 setVectorDirAndUp [ [0.5, 0.5, 0], [-0.5, 0.5, 0] ]; then all i do is paste that in exec command globally in mod menu made by css , and not in mission editor and it works. -
Help with this code
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
by looking at the age of your registration tells me your experienced and i am a beginner so am trying to learn from your basic codes sir , am not trying to take advantage , i really thank all for the help and support they give but yes i am newbie and soon will lean all by your codes sir , it takes time sir not over night. -
Help with this code
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
is it possible to have all enemy ai fire water xd -
Help with this code
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
without a trigger or anything i just want a simple code that i can place in .sqf and execute that and then all ai should come running towards player location and attack. wiill love to se this. -
MP suicide airplane
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
thanks for the kind reply. i wanted it to crash right into me -
wil like to know if it is possible to make suicide ai airplanes into play. i hope u dont mind as i am still a beginner and reaching out to professions for help thank u. am looking for a code where i can just paste it in debug and se it work instantly or maybe it .sqf file.
-
Spawn Ai Paratroopers over me
peacefull Nation posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
is it possible to spawn enemy ai paratroopers over me or a player ? -
spawn random paratroopers over my human players.
peacefull Nation posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
i am lookig for an easy script .sqf to put the whole code in thir and once that is executed it should randomly spawn enemy paratroopers over team players. thank you. -
Spawn Ai Paratroopers over me
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
================================= 1: how will i get ai airplane to come to my location and drop of ai paratroopers. 2: same with question one but this one with helicopter. i will really appreciate it alot. -
Spawn Ai Paratroopers over me
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
thank u so much for your help sir . i have this now another code paradrop supply , when it hits ground the ammo gets damaged then deleted. _para = "B_Parachute_02_F"; _vehicle = "B_supplyCrate_F" createVehicle (getPos player); _vehicle setPosATL (_vehicle modelToWorld[0,0,200]); _DropPos1 = getpos _vehicle; _Chute1 = createVehicle [_para, _DropPos1, [], 0, "NONE"]; _chute1 attachTo [_vehicle, [0, 0, 1]]; maybe can i some how get a helicopter to drop it off ? -
Spawn Ai Paratroopers over me
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
[(getPos player) vectorAdd [0,0,300], EAST, ["O_Soldier_PG_F","O_Soldier_PG_F","O_Soldier_PG_F","O_Soldier_PG_F"],[],[],[],[],[],180] call BIS_fnc_spawnGroup; i tried adding more troops how ever they fall down the sky and the default ones you already had deploy parachute fine. here is my modifed code. [(getPos player) vectorAdd [0,0,300], EAST, ["O_T_Recon_M_F","O_T_Recon_Medic_F","O_T_Recon_TL_","O_T_Sniper_F","O_Soldier_PG_F","O_Soldier_PG_F","O_Soldier_PG_F","O_Soldier_PG_F"],[],[],[],[],[],180] call BIS_fnc_spawnGroup; -
Spawn Ai Paratroopers over me
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
nice i just tested the [(getPos player) vectorAdd [0,0,300], EAST, ["O_Soldier_PG_F","O_Soldier_PG_F","O_Soldier_PG_F","O_Soldier_PG_F"],[],[],[],[],[],180] call BIS_fnc_spawnGroup; and wow. now i will check the rest of your code awesome dood. -
spawn random paratroopers over my human players.
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
i done it _pos = getPosATL Player; _pos set [1, 100];Player addBackpack "B_Parachute"; Player setPos [getPos Player select 0,getPos Player select 1,100.00]; Player action ["openParachute"]; i do search sir , am not randomly posting , i have so many search queries open to what i want to do and trying all i can. anyways this has done what i want thanks. pierremgi sir i also need what you posted and will try use it , just like u se this code i want a code similar to this so i can execute it in command line and then se if it works this way its more easy to se if it works. am looking for a code to deploy enemy helicopter fly to my location then enemy ai rapple down , i wil love to se this cheers. -
spawn random paratroopers over my human players.
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
_pos = getPosATL player; _pos set [2, 700]; player setPosATL _pos; player spawn bis_fnc_halo;removebackpack player; player addbackpack "B_Parachute";player addWeapon "BIS_Steerable_Parachute"; when i run this command it sets my user in skydive and adds parachute how ever when i deploy the parachute the screen changes for a second then parachute gets removed from player ? -
spawn random paratroopers over my human players.
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
i wanted a code for debug console version sir. i have a mod menu , .pbo inside it has various .sqf files ammo , teleport etc , so i will make another spawn_paratroopersai.sqf and execute that the way i do with others. i needed code just like how u paste it in debug console and send command globally -
how do i execute this code globally { if(!isPlayer _x && side _x != playerSide) then { _x setCaptive true; removeAllWeapons _x; doStop _x; } }forEach allUnits; i have this peace of code only inside test.sqf and now i have a custom menu list when i click on a option it executes this test.sqf but enemy ai guns dont get removed. but if i paste this code in another persons nss mod menu and execute this globally it works.
-
execute code globally
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
as i am new but still getting their , i was able to make it work now and here is what i made. _allAI = allUnits - allPlayers; _enemyAI = _allAI select { [side player, side _x] call BIS_fnc_sideIsEnemy }; _cnt = count _enemyAI; { [_x,"PATH"] remoteExec ["disableAI",_x]; _x spawn {sleep (random 20) max 5; _this remoteExec ["removeAllWeapons",_this]; _animation = ["AmovPercMstpSnonWnonDnon_exerciseKata","Acts_A_M01_briefing", "Acts_A_M02_briefing", "Acts_A_M03_briefing", "Acts_A_M04_briefing"] call BIS_fnc_selectRandom; [_this, _animation] remoteExec ["playMove",_this];}; } forEach _enemyAI; so each ai wil do random animation , now i am looking to make this loop just stuck here. not sure where to put the do while code -
spawn random paratroopers over my human players.
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
does it require to start the game + tadst all each time u create a new line of the code + wait for the game to load and so on this is time consuming unless thier is a faster way to se if code is working or not -
Spawn Ai Paratroopers over me
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
is thier a code command i can just paste it and then it just randomly spawns over currrent player location without setting markers.. or a full code i can test i can just put it in .sqf and run execute that sqf file and it spawns. within the sqf it can have command such as execvm or what ever as long it work thats all i care , as i am new i just want to se how the code is made and done , i hope am not asking alot , i am only asking for help cause i love it when i se it working just excited with what this game can do ,awesome. the server allows all codes to work even cheats so am thinking u can come up with a code to make this spawn thing. -
execute code globally
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
ok update. working _allAI = allUnits - allPlayers; _enemyAI = _allAI select { [side player, side _x] call BIS_fnc_sideIsEnemy }; _cnt = count _enemyAI; { [_x,"PATH"] remoteExec ["disableAI",_x]; _x spawn {sleep (random 10) max 5; _this remoteExec ["removeAllWeapons",_this]; [_this,"AmovPercMstpSnonWnonDnon_exerciseKata"] remoteExec ["playMove",_this];}; } forEach _enemyAI; how can i make this loop. _allAI = allUnits - allPlayers; _enemyAI = _allAI select { [side player, side _x] call BIS_fnc_sideIsEnemy }; _cnt = count _enemyAI; { [_x,"PATH"] remoteExec ["disableAI",_x]; _x spawn {sleep (random 10) max 5; _this remoteExec ["removeAllWeapons",_this]; [_this,"AmovPercMstpSnonWnonDnon_exerciseKata"] remoteExec ["playMove",_this];}; } forEach _enemyAI; how do i add this code too this while {true} do { }; -
execute code globally
peacefull Nation replied to peacefull Nation's topic in ARMA 3 - MISSION EDITING & SCRIPTING
this code is working fine _allAI = allUnits - allPlayers; _enemyAI = _allAI select { [side player, side _x] call BIS_fnc_sideIsEnemy }; _cnt = count _enemyAI; { [_x,"PATH"] remoteExec ["disableAI",_x]; _x setDir (_forEachIndex / _cnt * 360); cameraOn setAnimSpeedCoef 0.05; _x setPos (player getPos [10, 180 - (_forEachIndex / _cnt * 360)]); _x spawn {sleep (random 10) max 5; _this remoteExec ["removeAllWeapons",_this]; [_this,"AmovPercMstpSnonWnonDnon_exerciseKata"] remoteExec ["playMove",_this];}; } forEach _enemyAI; how ever all ai is getting teleported to me + my player gets frozen and cant walk or run fast moves slow motion . it dont affect other human players thats good. now am wondering why this is not working in same host. _allAI = allUnits - allPlayers; _enemyAI = _allAI select { [side player, side _x] call BIS_fnc_sideIsEnemy }; _cnt = count _enemyAI; { [_x,{ _this disableAI "PATH"; removeAllWeapons _this; while { alive _this } do { sleep 5; // ideally change this sleep to be just as long as the animation _this playMove "AmovPercMstpSnonWnonDnon_exerciseKata"; }; }] remoteExec ["spawn",_x]; } count ((allUnits - allPlayers) select { [side player, side _x] call BIS_fnc_sideIsEnemy });