Doggifast
Member-
Content Count
62 -
Joined
-
Last visited
-
Medals
Everything posted by Doggifast
-
[help]Remove enemy units from an array of units
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
It works perfectly man, thank you very much! -
[help]Remove enemy units from an array of units
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Mate you're a genious. Let me see if that works out for my script. -
[help]Remove enemy units from an array of units
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
OHHHHHHHH I SEEEEEEEEEEEEEEEEEEEEEE Simply execute the code on the blufor array and discard all the others! You're a genious mate! -
[help]Remove enemy units from an array of units
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Huh???????????? Crap... Uhh... I kinda don't understand... The problem is, i need to execute code using forEach on the blufor array... Crap i don't understand. Does this mean that pushBack removes the selected unit from the _men array??? -
[Help] Action cooldown with sqf activation instead of code
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Got it. One last question, how can i remove all of the enemy units from the array _list in //heal ? So that the medic calls for his nanobots to only restore friendlies. -
[Help] Action cooldown with sqf activation instead of code
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I see... But wouldn't this be fixed with just the third parameter set to false? -
[Help] Action cooldown with sqf activation instead of code
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yes, IsRifleUnit needs to be local since it's for another script i'm doing. I just wanted to make sure that it is. And yes, i want the CoolDownEnd set to true, meaning that one's ability is fully charged on mission start? What's wrong with it? -
[Help] Action cooldown with sqf activation instead of code
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Fixed it just like you suggested. Here's the new endcode: Init: this addAction [ "<t color='#A52A2A'>Heal all nearby units</t>", "MediBOT.sqf", nil, 10, true, false, "", "_this isEqualTo _originalTarget && (_this getVariable ""CoolDownEnd"")", 5, false ]; this setVariable ["IsRifleUnit", true, false]; this setVariable ["CoolDownEnd", true, true]; MediBOT.sqf: params ["_target", "_caller", "_actionId", "_arguments"]; _caller setVariable ["CoolDownEnd", false, true]; _position = getPosASL _caller; _radius = 25; _list = (ASLToAGL _position) nearEntities [["Man"], _radius]; //heal { // extinguish people on fire _x setVariable ["ace_fire_intensity", 0, true]; ["ace_medical_treatment_fullHealLocal", [_x], _x] call CBA_fnc_targetEvent; _x setDamage 0; } forEach _list; _caller say3D "Alarm"; "Health restored." remoteExec ["hint", _caller]; sleep 180; _caller setVariable ["CoolDownEnd", true, true]; _caller say3D "Alarm"; "Nanobots restored." remoteExec ["hint", _caller]; Thanks for your reply. I'll modify all the other classes i created just like this one. Many thanks. What im wondering is, can i remove all of the enemy units from the selection in //heal ? So that the medic calls for his nanobots to only restore friendlies. -
[Help] Action cooldown with sqf activation instead of code
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
MediBot does not have a varName and is referenced through _caller, i simply add the first action that triggers the others. As i said before, i'll see what i can do about all the stuff. Thanks -
[Help] Action cooldown with sqf activation instead of code
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Either way, I'll see what i can do about it. -
[Help] Action cooldown with sqf activation instead of code
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
It's not a big problem , because action's condition states only the player that action is created on is only able to use it. That means, even if the action isn't removed for other players, they can't see it anyway. -
[help]Teleportation effects
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
OHHHHHHH, now i get you guys, took me some time. I didn't intend teleportation effects for PLAYERS to teleport, but to PROPS teleport in front of players, like in the said earlier black mesa. -
[Help] Action cooldown with sqf activation instead of code
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Works as well as advertised, thank you very much. I've fixed some of the lines you sent, since it's _caller and not _target that needs the action removal, but it works very well. Well, it needs some more stuff to happen around the medic while he's using his ability, so I'm gonna look into that. Here's the endcode if you want to use it. params ["_target", "_caller", "_actionId", "_arguments"]; _position = getPosASL _caller; _radius = 25; _list = (ASLToAGL _position) nearEntities [["Man"], _radius]; //heal { // extinguish people on fire _x setVariable ["ace_fire_intensity", 0, true]; ["ace_medical_treatment_fullHealLocal", [_x], _x] call CBA_fnc_targetEvent; _x setDamage 0; } forEach _list; _caller removeAction _actionId; sleep 20; _caller addAction [ "<t color='#A52A2A'>Heal all nearby units</t>", "MediBOT.sqf", nil, 10, true, false, "", "_this isEqualTo _originalTarget", 5, false ]; -
[Help] Action cooldown with sqf activation instead of code
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Also, the first way is not variable, since i got several medibots and i am not making several scripts just for them. I'll try to go with the second way of it -
[Help] Action cooldown with sqf activation instead of code
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Alright, thank you. Sorry, I got knocked out at my work desk and didn't answer. I'll try that right now. -
[help]Teleportation effects
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Alright, thank you, I can't right now but i will try in several minutes and report back. -
[help]Teleportation effects
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Huh??? I mean like... Some 3D Sci-Fi effects... What did you mean exactly? -
Attaching props to a human unit with ragdoll attaching
Doggifast posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
tried [this, unit1] call BIS_fnc_AttachToRelative in init of the prop i wanted to attach, but when the unit was shot dead, props remained in air. Pls help. If this isn't possible I'll try to learn to model -
Attaching props to a human unit with ragdoll attaching
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm pretty sure there is a way to do it because in zeus enhanced i can attach a flag to a unit and it will still be attached even in dead/ragdoll state -
Adding defunct scope to a player's rifle
Doggifast posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Tried this: this addPrimaryWeaponItem optic_Aco_broken; Typed in init of the unit in the editor, didn't work. Rifle is clear and supports ACO C-More railway type of optic, using RHS's Mk17 mod 0. Didn't work, please help. -
Adding defunct scope to a player's rifle
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Well shit. Case closed then, unless somebody makes the mod to port the defunct items to a compat data or maybe a standalone mod. -
Adding defunct scope to a player's rifle
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
In the init of the soldier, which i want to have the scope on his rifle. The CBA_A3 mod? it is loaded, unless you are talking about some other abbreviation. And i do own contact DLC. Well, it was gifted by a friend, maybe that breaks stuff? -
Adding defunct scope to a player's rifle
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
That's probably it. Is there any compat mod? I can't find any on the workshop -
Adding defunct scope to a player's rifle
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
this addPrimaryWeaponItem "optic_MRCO_broken"; -
Adding defunct scope to a player's rifle
Doggifast replied to Doggifast's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have both of them loaded!