Jump to content

RS30002

Member
  • Content Count

    193
  • Joined

  • Last visited

  • Medals

Everything posted by RS30002

  1. Hey, trying to make a "dynamic" conquest thingy for myself, the idea is when a flag is captured the spawn modules get placed closer, to decrease travel time to the next flag. i have a trigger that detects ownership, that works, but i dont think this does: armorspawn setVehiclePosition [[2011.58,4168.43,0], 0, "CAN_COLLIDE"]; mechanizedspawn setVehiclePosition [[2038.65,4059.35,0], 0, "CAN_COLLIDE"]; and if/when the sector gets retaken by the adversary, the modules should move back to their starting point. Alternatively, i'd need syntax for creation of a module through script, but with all the attributes you can put down in the module dropdown menus (faction, numbers, types etc etc) ty for any answers in advance, bb also: is it time yet to start fiddling with the reforger thingy or nah???
  2. Why doesn't this work? the add action bit after the kill. Also, im noob so i just wrote the Meatharvested variable as true, but in reality, i'd like the player to shoot several goats, farm them for meat and only then the quest completes. So instead of that variable there should be some couunter "meat +1" and then some value somewhere that says when meat reaches 7 pieces {Meatharvested == true} fires off. Ty in advance for any assistance //[this] execVM "scripts\GoatHunting.sqf"; goatgroup = createGroup Civilian; goat1 = goatgroup createUnit ["Goat_random_F", [10786,12410.4,0],[],0,"NONE"]; sleep 1; waitUntil{sleep 1;!(alive goat1)}; sleep 4; cutText ["<t color='#01B933' size='1.7'>Villager:</t> <t color='#D3D7BD' size='1.5'>Take the meat from the goat</t> <br/><t color='#D3D7BD' size='1.5'>***********</t>", "PLAIN DOWN", -1, true, true]; [ goat1, "Take the meat", "\a3\ui_f\data\igui\cfg\actions\take_ca.paa", "\a3\ui_f\data\igui\cfg\actions\take_ca.paa", "_this distance _target < 3 AND {!(alive goat1)}", "_caller distance _target < 3 AND {!(alive goat1)}", {}, {}, { Meatharvested = true }, {}, [], 7, 1, true, false ] remoteExec ["BIS_fnc_holdActionAdd", 0, goat1];
  3. RS30002

    Hunting task issues!

    hmmm...that could be a perspective solution indeed. So far i got around it by using edaly_boar which comes as a "civilian" straight in the mod and there's the action after i shoot it. It's kinda anemic tho...needs the module behavior of wandering around to make it look legit, got around it by using a search ad destroy wp on the boar with some radius and it kinda runs around for a while after spawning and then stops. How can i put the waypoint in a loop? //[this] execVM "scripts\BoarHunting.sqf"; boargroup = createGroup Civilian; boar1 = boargroup createUnit ["Edaly_Boar", [10786,12410.4,0],[],0,"NONE"]; sleep 1; _wpboar1 = boargroup addWaypoint [[10786,12410.4,0], 100]; _wpboar1 setWaypointType "SAD"; //_wpboar1 setWaypointLoiterRadius 100; _wpboar1 setWaypointSpeed "LIMITED"; waitUntil{sleep 1;!(alive boar1)}; sleep 4; cutText ["<t color='#01B933' size='1.7'>Villager:</t> <t color='#D3D7BD' size='1.5'>Take the meat from the boar.</t> <br/><t color='#D3D7BD' size='1.5'>***********</t>", "PLAIN DOWN", -1, true, true]; [ boar1, "Take the meat", "\a3\ui_f\data\igui\cfg\actions\take_ca.paa", "\a3\ui_f\data\igui\cfg\actions\take_ca.paa", "_this distance _target < 3 AND {!(alive boar1)}", "_caller distance _target < 3 AND {!(alive boar1)}", {}, {}, { Meatharvested = true }, {}, [], 7, 1, true, false ] remoteExec ["BIS_fnc_holdActionAdd", 0, boar1];
  4. RS30002

    Hunting task issues!

    it's something with the goat. if i put a normal civilian i get the action to take the meat.....but i need it to work on an animal lol
  5. Great script. how do i use: TAG_react_condition = { true }; // _this contains the group to check, can be used to stop certain groups from responding i want to exclude some named units in the area, to not get the seek and destroy waypoint
  6. heya, this looked interesting, so i tried it and it's definitely working, but am getting this error at start of mission. but other than that, when i cursortarget the truck under the net in the pic, 3 groups swarm that area from their intended patrol, one of them can be seen behind the hangar and theyre set up for a 30 radius patrol, never going far away from the hangar itself. Works great. Just the error needs to go away :D (no unwanted symbols, i checked)
  7. Hello all, started using this nifty script and it's great for immersion (expanded the items list to make almost every box-y or trash-y object on the map interactable), just have one problem. When the items to be searched are over water, let's say a box on a wooden settlement in the middle of the sea, the action fizzles out right at the beginning. Everything works great on solid ground island. Any easy way to solve this maybe? cc: @Larrow (sry to tag, dont want to be intrusive, but seeing its your script, figured you'd know best) ty for any suggestions in advance
  8. Ya, i see. It's working now. Even over the rock. Did try getpos as the first thing i attempted, but it didn't work both over water (over rock) and over land. The action fizzled out. That was before "i figured" (had some help from someone on steam) about setting search distance to higher which got me first progress (action working over land and water - even if lootUI didn't display over water yet) so i kinda forgot about getpos thinking it doesnt work and the only way to solve this is just through distance settings and object placement in editor.
  9. so i just tested it again and it does not work in this setup on the pic below. depth is 50 meters, box is "Land_vn_drevena_bedna", rock is "Land_BluntRock_monolith" and if its set under the pier like in the pic, the UI loot window appears for quarter of a second then vanishes. If i remove the rock, it works. idk..i can make a video and upload to youtube but am rly lazy right now tbh. In any case i managed to find a work around, so..all good
  10. Good for you i guess, idk what else to say really? I had big problems, couldnt even get the action to work until i set the search distance in settings to 45 meters. idk
  11. Rocks (boulders) just below the lootable objects were the problem. After rearranging them so they aren't directly below it started to work with no issue.
  12. yoyoyo happy to report that through the power of pure autism i managed to solve it! Had rocks under the settlement, just below the surface of the water, giant 4x scale objects that represented a foundation on which the settlement on stilts stands. This *somehow* interfered with the script because when i removed them it all started working, just had to adjust distance. I had to redo things a bit, so now it looks like this and wherever there's rocks below the surface there's no lootable objects on the piers, but that's fine, can work around it. *spam over!!!
  13. ait nvm, OCD got the better of me the solution is: LARs_searchPos = getPos _caller; instead of getposATL _caller Crisis averted lmaoooo PS: sry for spam #edit: nvm its not working lol, just the action worked, but i dont get the loot window #edit2: idk, tried every getPos and none of it works, would have to somehow put an "overwater check" above that line, idk something like "if overwater LARpos=ASL _caller else LARpos=ATL _caller"
  14. Okay, didn't want to revive this, but just had an idea! Is there a way to code the objects through holdaction settings of the object (in the editor)? In a way that would just mimic loot table of the main script and have none of that nasty lineintersect AGLtoASL yadayadayada (im thinking that's where it goes wrong, tho i did look at the acronyms and one of these should account for water surface, or idk....? I could manually do them, there's like 20 objects on the piers over open water, piece of cake compared to what i otherwise build lol
  15. Hey all, i have this quest where the player would be required to complete some tasks for the OPFOR troops on the island. One of the tasks would be to take control of a OPFOR UAV gunner position, which then takes off on a predetermined flight and the player is supposed to use the turret to spot contraband crates on the decks of fishing boats (fishermen moonlight as smugglers). So far all is good when i test with the CSAT tester, but when i actually try with the incognito west unit, it just breaks down, doesn't want to work, no error displayed and my guess is that it falls apart when a west player is assigned/linked an OPFOR terminal. Is it even possible to use opposing side terminal? or any way around it? Ty in advance for any suggestions PS: I'm really constrained with the tasks selection right now and i have to be using these hard code ones instead of simple "kill officer" because if a player pulls a gun at a wrong spot (or simply exits a vehicle w/o the gun in vehicle inventory-easy mistake to make) or if you kill anyone it's basically over, they catch you in a few minutes (savegame doesn't work, idk why, topic for another thread tho lmao). here is the script, it's only done to the point of flying, none of the knowsabout things have been coded in yet tho PLANuavcrew = createGroup east; PLANuav_1 = createVehicle ["O_UAV_02_dynamicLoadout_F",[3358.85,37635.2,0],[],0,"NONE"]; [ PLANuav_1, ["Opfor",1], true ] call BIS_fnc_initVehicle; PLANuav_1 setDir 132; PLANuav_1 setPylonLoadout [1, ""]; PLANuav_1 setPylonLoadout [2, ""]; sleep 0.2; "O_T_Helipilot_F" createUnit [[0,0,0],PLANuavcrew,"PLANuavcrew1 = this; this unassignItem 'O_NVGoggles_ghex_F';this removeItem 'O_NVGoggles_ghex_F'",0.6,"corporal"]; "O_T_Helipilot_F" createUnit [[0,0,0],PLANuavcrew,"PLANuavcrew2 = this; this unassignItem 'O_NVGoggles_ghex_F';this removeItem 'O_NVGoggles_ghex_F'",0.3,"private"]; {_x moveInAny PLANuav_1} forEach units PLANuavcrew; player linkItem "O_UavTerminal"; waitUntil{ "O_UavTerminal" in assignedItems player }; diag_log "Terminal received"; player connectTerminalToUAV PLANuav_1; waitUntil{ isUAVConnected PLANuav_1 }; diag_log "Connected"; player action ["SwitchToUAVGunner", getConnectedUAV player]; waitUntil{ isUAVConnected PLANuav_1 && ( cameraOn isEqualTo PLANuav_1 ) }; diag_log "In gunner: adding ev"; addMissionEventHandler [ "PlayerViewChanged", { params[ "_oldUnit", "_newUnit", "_vehicle", "_oldCamera", "_newCamera", "_uav" ]; diag_log "PVC_fired"; if ( _oldCamera isEqualTo PLANuav_1 && { ( _newCamera isEqualTo player ) } ) then { diag_log "disconnecting terminal"; player connectTerminalToUAV objNull; diag_log "removing terminal"; player unlinkItem "O_UavTerminal"; diag_log "player disconnected"; removeMissionEventHandler[ "PlayerViewChanged", _thisEventHandler ]; }; }]; true; sleep 0.2; _PLANuavwp1 = PLANuavcrew addWaypoint [position base_boat, 0]; _PLANuavwp1 setWaypointType "MOVE"; //_PLANuavwp1 setWaypointLoiterRadius 200; _PLANuavwp1 setWaypointSpeed "NORMAL"; PLANuav_1 flyinheight 130; waitUntil {((PLANuav_1 distance base_boat) <= 800)}; _PLANuavwp2 = PLANuavcrew addWaypoint [position bigfshboat2, 0]; _PLANuavwp2 setWaypointType "MOVE"; _PLANuavwp2 setWaypointSpeed "NORMAL"; PLANuav_1 flyinheight 130; waitUntil {((PLANuav_1 distance bigfshboat2) <= 800)}; _PLANuavwp3 = PLANuavcrew addWaypoint [position bigfshboat5, 0]; _PLANuavwp3 setWaypointType "MOVE"; _PLANuavwp3 setWaypointSpeed "NORMAL"; PLANuav_1 flyinheight 130; waitUntil {((PLANuav_1 distance bigfshboat5) <= 400)}; _PLANuavwp4 = PLANuavcrew addWaypoint [position bigfshboat1, 0]; _PLANuavwp4 setWaypointType "CYCLE"; _PLANuavwp4 setWaypointSpeed "NORMAL"; PLANuav_1 flyinheight 130; waitUntil {((PLANuav_1 distance bigfshboat1) <= 400)};
  16. Hey all, need some help with this trgtfshmngrp1 = createGroup civilian; "vn_c_men_12" createUnit [[0,0,0],trgtfshmngrp1,"trgtfshmn1 = this; this removeItem 'vn_c_pack_01_engineer_pl'",0.6,"corporal"]; sleep 0.5; trgtfshboat1 = "pook_Trawler_CIV" createVehicle [100,100,0]; trgtfshboat1 setDir 150; {_x moveInAny trgtfshboat1} forEach units trgtfshmngrp1; trgtfshboat1 setPos getpos richtaskhelper; trgtfshmn1 synchronizeObjectsAdd [richtaskdest]; sleep 2; dummy = [trgtfshboat1, "ColorOrange",true,700] execVM "JBOY\JBOY_boatRandomPatrol.sqf"; [trgtfshboat1, "<t color='#ED102E'>Rig to Blow</t>", "\a3\ui_f\data\igui\cfg\actions\settimer_ca.paa", "\a3\ui_f\data\igui\cfg\actions\settimer_ca.paa", "_this distance player < 17 && 'DemoCharge_Remote_Mag' in magazines player", "_caller distance player < 17", {}, {}, {player removeItem 'DemoCharge_Remote_Mag'; trgtfshboat1 setdamage 0.01; hint "10 seconds to blow."; sleep 10; "Bo_GBU12_LGB_MI10" createVehicle (getpos trgtfshboat1); trgtfshboat1 setdamage 1;}, {}, [], 10, 5, true, false] call BIS_fnc_holdActionAdd; It doesn't want to sync-add either the boat or the boat driver to the set task destination module, which is placed in editor and synced to the relevant task modules. "richtaskdest" is the name of the location module to be synced. Was hoping i could solve the mobile task destination problem with this, up until now i've relied on helper objects that get hidden for objective locations which are far away and/or are not stationary - like just to give a rough assessment of where the target area is. Ty in advance for any suggestions
  17. Didn't work. Got around it tho, synced the module with the invisible helper sphere in editor and then in the script attached the sphere to the boat and now it's moving like it's supposed to.
  18. Hey, idk if it's too late for this, but, you can just set up the garrison manually, when you're "building" the composition and they get saved in the process and spawned in as you set them.
  19. RS30002

    Changing username request

    Hey, admins, was wondering if it's possible to change my username? I tried making a new account but i cannot log in with the new credentials. Many thanks for any assistance
  20. Hello, this doesn't seem to be working {_x == "vn_prop_food_sack_01_gh"} count items player >= 5 AND player distance mkt1_seller_10 < 10; It's not counting (or registering the 5 items when picked), i also tried without the _prop if it's the same as with uniforms (the pickable object has a slightly different name). Appreciate any help, ty in advance
  21. RS30002

    Trigger help

    The class name for the weapon holder is this probably: "vn_prop_food_sack_01_gh" this is the classname of the item you set down in the editor (bag of rice in the field), and if you remove _gh, it is the actual item in the player inventory (bag of rice that gets counted). I think _gh means ground holder, but obv cant be sure, just a hunch.
  22. RS30002

    Trigger help

    Quick follow up lol, how could i elegantly write the following: {_x == "vn_prop_food_sack_01"} count magazines inArea RiceDropoffArea >= 5; the idea is that 5kg of rice needs to be disposed of because the character gets tired really quickly and the best way to do that is to tie it into task completion by scripting a dropoff point rather than just proximity to the questgiver.
  23. RS30002

    Trigger help

    Good stuff! It worked. but omg lol, it does feel more like an item than a magazine. Many thanks!
  24. RS30002

    Trigger help

    tnx for the reply, got the new name "vn_prop_food_sack_01", but somehow it still doesn't work.
  25. RS30002

    Trigger help

    Heya, ty for the reply, on the face of it, it probably can work, but ideally i'd need a solution to track the bags of rice in player inventory, because i've attached a trigger to it that counts bags of rice and when it's at 5 that moves the task wp to the quest giver, tells the player to go back where the quest is completed, reward gets rewarded etc etc
×