Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×

CuddleTank001

Member
  • Content Count

    29
  • Joined

  • Last visited

  • Medals

Everything posted by CuddleTank001

  1. 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?
  2. CuddleTank001

    Globally executing actions

    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"
  3. CuddleTank001

    Globally executing actions

    so should i just throw that in my "OnPlayerRespawn.sqf"? or do I have to plant it in the heli's init?
  4. CuddleTank001

    Globally executing actions

    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.
  5. 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.
  6. 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?
  7. Nvm its working, it was the weapon class, im sorry for unnecessarily holding you guys.
  8. 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.
  9. Because when i add the same action via the debug console it works perfectly
  10. I don’t understand, is the problem in the addaction itself, or the foption section as a whole?
  11. update: when i add it via the debug console it works, but when its added by the first add action it doesn't
  12. its in an on player respawn, and i got respawn on start on
  13. 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;
  14. actually hold on, i tried this script in multiplayer and it didn't work 😛
  15. 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 🙂 .
  16. 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
  17. 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?
  18. im trying to only show this action to players with PO7s in their hands
  19. 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.
  20. 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?
  21. 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]}]; };
  22. 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?
×