Big_Daddy
-
Content Count
208 -
Joined
-
Last visited
-
Medals
Posts posted by Big_Daddy
-
-
Well, there kind of is.. You can use the Alt-E editor, place a cone or something in the middle, (ground zero) place your other items around it. Save it. Then you'll have the info you need to make your calculations for w/e-n/s placement. Also, your azimuth.
-
From the wiki
You need to set the new sides friendly status using the setFriend command, once you have created your Center. Otherwise the newly created AI will not engage you, if you're on the opposing side
-
nul = [] spawn { sleep 5; "USMC_Soldier_Pilot" createunit [[(getpos chopperName select 0) + 10,(getpos chopperName select 1) + 10,0],(createGroup WEST),"jon = this"]; jon setdamage 0.6; // first aid.. FAcenter = createCenter sideLogic; FAgroup = createGroup FAcenter; //for healing faais = FAgroup createUnit ["AlternativeInjurySimulation", [0, 0, 0], [], 0, ""]; faais synchronizeObjectsAdd [jon, leader player]; //for dragging fabc = FAgroup createUnit ["BattleFieldClearance", [0, 0, 0], [], 0, ""]; fabc synchronizeObjectsAdd [jon, leader player]; };Info from Here
-
That script is to place the already defined Composition's. If your wanting to create your own, you can do it via script. Take a look at the Manhattan mission. They create that base from scratch.
Also, you can depbo the modules.pbo and look in DynO\data\scripts\compositions.. Look how they create them. Then run the edited script that Armaholic provides to look at your newly created Compositions.
-
spawnvehicle
Returns:
Array:
0: new vehicle (Object).
1: all crew (Array of Objects).
2: vehicle's group (Group).
so..
_gunner = gunner (guard_aa_0 select 0);
_gunner reveal _target;
_gunner doWatch _target;
_gunner doTarget _target;
-
Search is a powerful thing...
From one of my other posts...
this addAction ["Call Blitzy","scripts\blitzy.sqf",[],0,false]; this addeventhandler ["killed", {_this execVM "scripts\blitzyaction.sqf"}];blitzyaction.sqf
waitUntil {alive player}; player addAction ["Call Blitzy","scripts\blitzy.sqf",[],0,false]; if (true) exitWith {}; -
mp framework is your friend..
Your calling the MPF script taskhint without useing MPF. so your missing the string to make the call local, and persistent for JIP.
_nic = [nil,player,"loc"+"per",rsetTaskState,tskobj_2,"SUCCEEDED"] call RE; _nic = [nil,player,"loc"+"per",rtaskHint,tskobj_2,"SUCCEEDED"] call RE; _nic = [nil,player,"loc"+"per",rsetcurrenttask ,tskobj_3] call RE;
-
ahh. see, then that's just an explosion. it's not an attack. I suppose in your trigger, you could script them to find cover.
-
the _victem is nothing more than an object. set whatever _victem is, and he'll go right to it.
-
Here's what I'm trying to do...
I have a script that switch/cases the persons' name. Then runs a rearm script on the person. Now, that's not so tricky... right? I'm running the script outside the .pbo.. from the root of the server.
[] execvm "\rearm.sqf";
Now, it's working great, if the .sqf is in the game root of my local machine. (or the other guys).. But, I don't want to have to send them updated scripts everytime. So I want to run it from the dedicated server. Which will be my machine while testing and the leased dedicated server.
if (isserver) then {execvm "\rearm.sqf"};
That way, it runs from the dedi server, and not try to run locally. hence my guys will not need updated scripts locally.
Now the script I had before just called player and if player wasn't local it exited. but now player won't be local. so I need the name of the unit.
Now I know the easiest way would be to lock down units. Big Daddy uses unit BigD.. or something like that. But we have medic's, engineers, etc..
Here's what I have for running it local. I've started to update it with the mp framework so it works from the server. but don't know how to finish it..
Edit:
Seems to be working after doing some testing.. Just need to put it on the dedicated server..
if (isnil "RE") then {[] execVM "\ca\Modules\MP\data\scripts\MPframework.sqf"}; private "_name"; {if (Name _x == "Big Daddy") exitwith {_name = VehicleVarName _x;}} foreach AllUnits; _name = call compile _name; _playername = toLower (name _name); switch(_playername)do { case "big daddy": { _nic = [_name, nil, rremoveAllWeapons, ""] call RE; {_nic = [_name, _name, "loc" + "per",raddmagazine, "100Rnd_556x45_BetaCMag"] call RE;} forEach [1,2,3]; _nic = [_name, _name, "loc" + "per",raddWeapon, "m8_sharpshooter"] call RE; {_nic = [_name, _name, "loc" + "per",raddmagazine, "10Rnd_127x99_m107"] call RE;} forEach [1,2,3,4,5,6,7,8]; _nic = [_name, _name, "loc" + "per",raddWeapon, "m107"] call RE; {_nic = [_name, _name, "loc" + "per",raddmagazine, "SMAW_HEAA"] call RE;} forEach [1,2,3,4]; _nic = [_name, _name, "loc" + "per",raddWeapon, "SMAW"] call RE; {_nic = [_name, _name, "loc" + "per",raddmagazine, "pipebomb"] call RE;} forEach [1,2]; _nic = [_name, _name, "loc" + "per",raddweapons, "binocular"] call RE; _nic = [_name, _name, "loc" + "per",raddweapons, "NVGoggles"] call RE; }; case "saint blitz": { _nic = [_name, nil, rremoveAllWeapons, ""] call RE; {_nic = [_name, _name, "loc" + "per",raddmagazine, "100Rnd_556x45_BetaCMag"] call RE;} forEach [1,2,3]; _nic = [_name, _name, "loc" + "per",raddWeapon, "m8_sharpshooter"] call RE; {_nic = [_name, _name, "loc" + "per",raddmagazine, "10Rnd_127x99_m107"] call RE;} forEach [1,2,3,4,5,6,7,8]; _nic = [_name, _name, "loc" + "per",raddWeapon, "m107"] call RE; {_nic = [_name, _name, "loc" + "per",raddmagazine, "SMAW_HEAA"] call RE;} forEach [1,2,3,4]; _nic = [_name, _name, "loc" + "per",raddWeapon, "SMAW"] call RE; {_nic = [_name, _name, "loc" + "per",raddmagazine, "pipebomb"] call RE;} forEach [1,2]; _nic = [_name, _name, "loc" + "per",raddweapons, "binocular"] call RE; _nic = [_name, _name, "loc" + "per",raddweapons, "NVGoggles"] call RE; }; default { _nic = [_name, nil, rremoveAllWeapons, ""] call RE; {_nic = [_name, _name, "loc" + "per",raddmagazine, "100Rnd_556x45_BetaCMag"] call RE;} forEach [1,2,3]; _nic = [_name, _name, "loc" + "per",raddWeapon, "m8_sharpshooter"] call RE; {_nic = [_name, _name, "loc" + "per",raddmagazine, "10Rnd_127x99_m107"] call RE;} forEach [1,2,3,4,5,6,7,8]; _nic = [_name, _name, "loc" + "per",raddWeapon, "m107"] call RE; {_nic = [_name, _name, "loc" + "per",raddmagazine, "SMAW_HEAA"] call RE;} forEach [1,2,3,4]; _nic = [_name, _name, "loc" + "per",raddWeapon, "SMAW"] call RE; {_nic = [_name, _name, "loc" + "per",raddmagazine, "pipebomb"] call RE;} forEach [1,2]; _nic = [_name, _name, "loc" + "per",raddweapons, "binocular"] call RE; _nic = [_name, _name, "loc" + "per",raddweapons, "NVGoggles"] call RE; }; }; -
No, Sigh.. that didn't work. but thanks for the try.
-
Is this for a player? or anybody?
screentoworld if it's a player. other than that.. dunno
-
how would you go about creating the cut scenes? do you have that part yet?
If you do, then put it in a say cutscene.sqf
then in the trigger, or however you call it.
_null = execvm "cutscene.sqf";
Just like you call the briefing.sqf.
But since your scripting it (however your using selectplayer) put the cutscene info into that.
-
what' Chef is saying is edit (using a text editor) the mission.sqm file, and manually changing the side of a unit. once edited if you pbo the mission and run it, it will run that way.
BUT...
if (after manually changing sides of a unit) you open the mission.sqm file (in the arma editor) one of 2 things will happen. the game will crash big time, or the units will just transition back to their original sides.
-
The briefing can be run whenever. If you put it in the init.sqf it runs at the beginning. But you can call a "briefing" whenever, can also be called whatever.
The briefing is nothing more than a sqf for adding tasks, and showing you pretty pictures, and movies.
-
What i put are examples.
this addEventHandler ["fired", "hint format['fired - %1',_this select 3]"]
would need to be modified to run the script that you write, and would go into the init of the unit your working with.
_muzzle = _this select 3;
if (_muzzle == "PipeBombMuzzle") then {pipelayed = true};
Would be in the script that you call from the addevenhandler.
-
heh, generally they'll do that anyway.. :)
-
Cobra, this is the 3rd time you've asked. I know nobody is giving you the answers, because it's not the easiest thing to do.
The only way I can see it happening is if you:
add a fired event handler to the player to run a script
this addEventHandler ["fired", "hint format['fired - %1',_this select 3]"]
this one does a hint telling you what muzzle fired. for a pipe bomb it's PipeBombMuzzle, it happens when you place the pipe bomb.
in that script check to see if the muzzle used is "PipeBombMuzzle"
ie:
_muzzle = _this select 3;
if (_muzzle == "PipeBombMuzzle") then {pipelayed = true};
Then in your conditions of your trigger this && pipelayed && player in thislist
Guys, help me out if I'm missing something.
resources:
-
heh. and that's the LAST time you edit that mission in the editor. If you need to make changes to the mission, change the units back to west (or original side)
-
Ok, here is a question I'm throwing out to the group...
I'm trying to get a unit name (name from the editor)
I'm assuming it will include:
String = vehicleVarName objectName
I just don't know how to make the syntax.
_name = vehicleVarName (name player == "Big Daddy");
Something like that..
Thanks
Edit:
I'm trying to run this from the server. Keeping it off local boxes.
-
well, it will actually do the work for you, you may have to import the script into a chern map instead of utes. give it a try..
-
Couldn't you do all the cinematic stuff/breifing etc. then selectPlayer?
-
Give a look at Kronsky's Vehinfo script.
Lets you walk up to an object, and it will give you all the needed info. Works great on placed objects. Don't know how well it works on terrain buildings.
-
_uavpilot setVehicleInit format ["%1 = this;this disableAI ""AUTOTARGET"" ; this disableAI ""TARGET"" ; this setCombatMode ""BLUE"";this setBehaviour ""careless"";",_name1];
btw, here's the anti divebombing part of being a UAV..
Spawned units kill eachother?
in ARMA 2 & OA : MISSIONS - Editing & Scripting
Posted
Is the player on the east side?