CuddleTank001
Member-
Content Count
29 -
Joined
-
Last visited
-
Medals
Everything posted by CuddleTank001
-
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?
-
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. -
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 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Im trying to add actions that are exclusive to characters carrying ak-12 30 rnd magazines, or maybe to characters that are wearing the NATO pilot coveralls, and i cant figure a way to do so, can i please get some 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 😛 -
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! -
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
and arent "toLower (typeOf currentWeapon player) isEqualTo "hgun_p07_f"" and "toLower (typeOf currentWeapon player) isEqualTo 'hgun_p07_f'" the same? the only difference that i can spot is that one of them is more tidier than the other -
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
that still gives me the error -
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
im kinda new to this whole scripting thingy and the mag script looks intimidating tbh so i'll just stick to the weapon script, so i ended up with Player addAction ["<t color='#FFFF00'>repair</t>",{cursorTarget setDamage 0;},[],-1,false,true,"","toLower (typeOf currentWeapon player) isEqualTo "hgun_p07_f""]; but the message gave me a missing ] error, so what did i do wrong? -
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
im trying to only show this action to players with PO7s in their hands -
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 also tried Player addAction ["<t color='#FFFF00'>repair</t>",{cursorTarget setDamage 0;},[],-1,false,true,"","([hgun_P07_snds_F] = currentWeapon player)"]; but it didn't work neither, and gave me a missing ; error. -
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
ok so i tried Player addAction ["<t color='#FFFF00'>repair</t>",{cursorTarget setDamage 0;},[],-1,false,true,"","_weaponclass = [hgun_P07_snds_F]"]; but it just hid the action and no matter what gun i hold it wouldn't show back up, so what did i do wrong? -
How can i add an action that is exclusive to the co pilot of a heli?
CuddleTank001 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
So i have been trying to host a flight training server, i added all the actions to all the players and everything worked well, but i dont want the pilot to have access to these commands i just want the co pilot to. so i just want to restrict the actions below to copilots player addAction ["<t color='#FFFF00'>HULL</t>",{vehicle player setHitPointDamage ["hithull", 1]}]; player addAction ["<t color='#FFFF00'>ENG</t>",{vehicle player setHitPointDamage ["hitengine", 1]}]; player addAction ["<t color='#FFFF00'>Rear Rotor</t>",{vehicle player setHitPointDamage ["hitvrotor", 1]}]; }; -
How can i add an action that is exclusive to the co pilot of a heli?
CuddleTank001 replied to CuddleTank001's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Is there a way to plant it into the character itself, or maybe a scriptline to spawn vehciles with that action, for example is there a way to make this action: player addAction ["Humming Bird", {"B_Heli_Light_01_stripped_F" createVehicle position player;}]; spawn a hummingbird with the restricted action in it?