CuddleTank001
Member-
Content Count
29 -
Joined
-
Last visited
-
Medals
Community Reputation
3 NeutralAbout CuddleTank001
-
Rank
Private First Class
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Globally executing actions
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
well the thing is, this heli well be respawning all the time, so how can i make it respawn with the same init every time? EDIT: and it also gives me an error stating "invalid number in expression" -
Globally executing actions
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
so should i just throw that in my "OnPlayerRespawn.sqf"? or do I have to plant it in the heli's init? -
Globally executing actions
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
does your script not execute or is the action missing for copilot? deliver infos please and don't let us ask everything... aslo what is this or better what should it be? when i activate the action the ENG turns red for me and stops spinning, but nothing happens at the pilot's screen, so basically the script works for me, but not the pilot. I am the co pilot, and as when i globally execute the script from the debug console, it works for both me and him. This is make the command exclusive to the co-pilot. -
-
I know that it's been asked a lot of times, and i personally viewed a lot of topics but i still can't seem to understand it. im making a heli pilot training mission, with a lot of actions that can be triggered from the co-pilot seat, but when i trigger them, they only happen for me and not the pilot, but when i type the script in the debug console, and globally execute it, it works for both of us. Player addAction ["<t color='#FFFF00'>ENG</t>",{vehicle player setHitPointDamage ["hitengine", 1]},nil,0,false,true,"","_this == _Target turretunit [0]",15, false]; This is one of the scripts, the other are similar. so can i please get help?
-
Restricting action to when a character has a certain magazine in its inventory
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Nvm its working, it was the weapon class, im sorry for unnecessarily holding you guys. -
Restricting action to when a character has a certain magazine in its inventory
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
The OnPlayerRespawn is in the mission file. All the actions work perfectly but the ones restricted to the po7 (repair target, delete, destroy, spawn vehicles) the working actions are (repair, eng, rear rotor, earplugs, and soption section). The faulty actions do not show up at all, no matter what gun i have out they wont show up. -
Restricting action to when a character has a certain magazine in its inventory
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Because when i add the same action via the debug console it works perfectly -
Restricting action to when a character has a certain magazine in its inventory
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I don’t understand, is the problem in the addaction itself, or the foption section as a whole? -
Restricting action to when a character has a certain magazine in its inventory
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
update: when i add it via the debug console it works, but when its added by the first add action it doesn't -
Restricting action to when a character has a certain magazine in its inventory
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
its in an on player respawn, and i got respawn on start on -
Restricting action to when a character has a certain magazine in its inventory
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
oh it may not be compatible with my whole script, so this is my script, it may look noobish but just bare with me. removeallactions player; start = { removeallactions player; player addAction ["<t color='#0000FF'>Begin</t>", foption]; }; foption = { removeallactions player; Player addAction ["<t color='#0000FF'>Spawn Vehicles</t>", soption ,[],-1,false,true,"",'currentWeapon player == "hgun_P07_snds_F"']; Player addAction ["<t color='#FF00FF'>Repair</t>",{vehicle player setDamage 0; vehicle player setFuel 1; vehicle player setVehicleAmmo 1;},nil,0,false,true,"","_this == _Target turretunit [0]",15, false]; Player addAction ["<t color='#FF00FF'>Repair Target</t>",{cursorTarget setDamage 0;cursorTarget setFuel 0;cursorTarget setVehicleAmmo 0;},[],-1,false,true,"",'currentWeapon player == "hgun_P07_snds_F"']; Player addAction ["<t color='#FFFF00'>ENG</t>",{vehicle player setHitPointDamage ["hitengine", 1]},nil,0,false,true,"","_this == _Target turretunit [0]",15, false]; Player addAction ["<t color='#FFFF00'>Rear Rotor</t>",{vehicle player setHitPointDamage ["hitvrotor", 1]},nil,0,false,true,"","_this == _Target turretunit [0]",15, false]; player addAction ["<t color='#FF0000'>DESTROY</t>", {cursorTarget setDamage 1;},[],-1,false,true,"",'currentWeapon player == "hgun_P07_snds_F"']; player addAction ["<t color='#FF0000'>DELETE</t>", {deleteVehicle cursorTarget;},[],-1,false,true,"",'currentWeapon player == "hgun_P07_snds_F"']; player addAction ["<t color='#00FF00'>Remove Earplugs</t>" , {1 fadeSound 1},0,1,false,false,"","(soundVolume < 1)"]; player addAction ["<t color='#00FF00'>Put Earplugs On</t>" , {1 fadeSound 0.15},0,1,false,false,"","(soundVolume == 1)"]; }; soption = { removeallactions player; player addAction ["<t color='#FF0000'>Pawnee</t>", {"B_Heli_Light_01_dynamicLoadout_F" createVehicle position player;}]; player addAction ["Humming Bird", {"B_Heli_Light_01_stripped_F" createVehicle position player;}]; player addAction ["Hellcat", {"I_Heli_light_03_unarmed_F" createVehicle position player;}]; player addAction ["Orca", {"O_Heli_Light_02_unarmed_F" createVehicle position player;}]; player addAction ["Taru", {"O_Heli_Transport_04_covered_F" createVehicle position player;}]; player addAction ["Armed Hellcat", {"I_Heli_light_03_dynamicLoadout_F" createVehicle position player;}]; player addAction ["Huron", {"B_Heli_Transport_03_unarmed_F" createVehicle position player;}]; player addAction ["Blackfish", {"B_T_VTOL_01_infantry_F" createVehicle position player;}]; player addAction ["Darter", {"B_UAV_01_F" createVehicle position player;}]; player addAction ["<t color='#0000FF'>Back</t>", foption]; }; call start; -
Restricting action to when a character has a certain magazine in its inventory
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
actually hold on, i tried this script in multiplayer and it didn't work 😛 -
force respawn at a respawn point
CuddleTank001 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
so i made 8 characters, i enabled respawn on start, i enabled respawn on custom position, and i synced all the units to that marker, but when i start my mission all the units spawn in the ocean -the south-west corner of the map- so how can i force them to respawn there at starting and just respawn there whenever they die. -
Restricting action to when a character has a certain magazine in its inventory
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
thank you both for your condition parsing explanations, you probably saved me alot of future scripting time, and forum topics 😛 . but seriously thanks for the help, you've been the best arma scripting support dudes i've ever seen 🙂 . -
Restricting action to when a character has a certain magazine in its inventory
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
yup that worked, thx for the help!