-
Content Count
134 -
Joined
-
Last visited
-
Medals
Posts posted by Lucullus
-
-
Pay attention to the syntax!
_grp = createGroup east; _unit = _grp createUnit ["O_Survivor_F",(getMarkerPos "opfor_0"),[],0, "NONE"];
_type = "O_Survivor_F"; _here = getmarkerpos "opfor_0"; _group = createGroup east; _init = ""; _skill = 0.5; _rank = "PRIVATE"; _type createUnit [_here,_group,_init,_skill,_rank];
- 2
-
Excellent thread, thanks @ZaellixA for your persistent questioning, thanks to all who respond to it, specifically @Dedmen, for your consistent style.
I've learned a lot, hopefully I can put that learned into practice.
- 4
-
24 minutes ago, GEORGE FLOROS GR said:Have fun !
I'm always having fun with your scripts!
- 1
-
Looks good George, will test it right away.
- 1
-
Give your playable units a variable name such as: P01.
Replace "player" with the "P01" and you have the solution.
The server doesn´t know player but P01.{_x in H1} count (units group P01) == {alive _x} count (units group P01);
Player is a command that points to an object and works only on clients or client-server, not on dedicated-server.
It would be better to give the different groups a name, for example: G01.
Edit: ... and welcome to the Arma MP Universe, there are a lot of stumbling blocks left ...
- 1
-
-
5 minutes ago, GEORGE FLOROS GR said:Alias work is always unique !
Just like Johnnyboy's.
But I'll take a closer look, thanks.- 2
-
Then I'll wait for the next surprise, maybe an insect pest ...😈
-
What a great surprise.
Where did you get all the ideas from? -
Usually I go on vacation there, now I drive around with a tank on the island. 🤗
Good work.
- 1
- 1
-
For vehicles you could do it like this:
tag_fnc_used_mags = { _mags = magazinesAllTurrets _this; private _used_mags = []; { _x params ["_mag","_turret","_count"]; if (getNumber (configfile >> "CfgMagazines" >> _mag >> "count") > _count) then { _used_mags pushBack _mag }; } forEach _mags; _used_mags };
Call e.g. with: vehicle player call tag_fnc_used_mags
Spits out an array of used magazines.
So many ways to do something...
- 2
-
in EdenEditor Menue >> Attributes >> Multiplayer
then in window Edit: Multiplayer >> Lobby >> Summary
Edit:
I think that there is no possibility with the description.ext, because it is not documented.
- 1
- 1
-
The max number is in the pylon magazine text.
"PylonRack_3Rnd_Missile_AGM_02_F"
edit:
You can also get the max ammunition with:
getNumber (configfile >> "CfgMagazines" >> "PylonRack_3Rnd_Missile_AGM_02_F" >> "count");
- 1
- 1
-
I had done this last year:
tag_fnc_PylonArray = { // predefine the return value private _returnArray = []; // read all existing magazines in the pylons _arrPylonMagazines = getPylonMagazines _this; // create the return array using the config { _returnArray pushback [ // pylon name _x, // pylon magazine _arrPylonMagazines select _forEachIndex, // amount of ammunition _this ammoOnPylon _x ] } forEach ("true" configClasses (configFile>>"CfgVehicles">>typeOf _this>>"Components">>"TransportPylonsComponent">>"pylons") apply {configName _x}); _returnArray };
Call e.g. with: vehicle player call tag_fnc_PylonArray;
The function gives you e.g. the following array back:
[ ["Pylons1","PylonRack_1Rnd_Missile_AA_04_F",1], ["Pylons2","PylonRack_7Rnd_Rocket_04_HE_F",7], ["Pylons3","PylonRack_3Rnd_Missile_AGM_02_F",3], ["Pylons4","PylonMissile_1Rnd_Bomb_04_F",1], ["Pylons5","PylonMissile_1Rnd_Bomb_04_F",1], ["Pylons6","PylonMissile_1Rnd_Bomb_04_F",1], ["Pylons7","PylonMissile_1Rnd_Bomb_04_F",1], ["Pylons8","PylonRack_3Rnd_Missile_AGM_02_F",3], ["Pylons9","PylonRack_7Rnd_Rocket_04_AP_F",7], ["Pylons10","PylonRack_1Rnd_Missile_AA_04_F",1] ]
[ ["pylon name","pylon magazine",amount of ammunition], ...]
With the help of the array you can quickly see which ammunition needs to be filled up.
- 1
-
Or the handleDamage EH...
edit:
As I guess George he is already tinkering. 😉
- 1
-
Maybe, but you can try the difference.
From my ArmaArcade mission onPlayerKilled.sqf:
params ["_oldUnit","_killer"]; _load = getUnitLoadout _oldUnit; // a few more lines... waitUntil { sleep 0.1; !isNull player }; player setUnitLoadout [_load,false];
- 1
- 1
-
-
private your variable _month first.
-
-
Arma vanilla?
41 minutes ago, Lucullus said:player addEventHandler ["AnimChanged", { params ["","_anim"]; hint format ["%1",_anim]; }];
^^^ this should give you a continual hint as you move...
-
32 minutes ago, Fastfood4Bigfoot said:Best working code until now is...
Use this instead:
player addEventHandler ["AnimChanged", { if (animationState player == "para_pilot") then { ("SmokeShell" createVehicle (position player)) attachto [(vehicle player)]; }; }];
"para_pilot" is an action name, not an anim name.
-
Hmm, can´t test it yet...
What about...
player addEventHandler ["AnimChanged", { params ["","_anim"]; hint format ["%1",_anim]; }];
...to check anim name?
-
untested
player addEventHandler ["AnimChanged", { params ["","_anim"]; if (_anim isEqualTo "para_pilot") then { ("SmokeShell" createVehicle (position player)) attachto [(vehicle player)]; }; }];
edit: too late...
-
Sorry, I did not know that there is a Sunday Revive script package.
Unfortunately I can not start your example mission, do you already have something working?It's better to ask the author how he integrated his script package.
- 1
Script firing multiple times on dedicated
in ARMA 3 - MISSION EDITING & SCRIPTING
Posted
I did not look at much of your script, but the trigger statement works with the players.
That's not good for an MP mission.
Such things should only be done by the server.