You're a total lifesaver, managed to build an ambient AA script from this and your other video when nothing else would work. Fantastic job!
@UncleJean-99 Жыл бұрын
just got a sub from me, needed this exact thing for some Arma scene building with tanks, and didnt feel like adding the tanks firing in photopshop. You got straight to the point and put the script in the description. Youre awesome, thank you!
@vaughnf.60764 жыл бұрын
Very good...I used the same script using a line of tanks at a firing range. I clicked on the gunner in the tank and added the script to him for it to work. For the targets I used tanks, trucks anything that exploded for targets. I was surprised to see the tank still firing at the same target after it was burning. Looks great at nighttime firing....Thanks for this video and script.
@WhiteRaven4 жыл бұрын
You're very welcome
@NickeoProductions Жыл бұрын
Hello White Raven. I always find myself coming back to your videos. I do hope you can post soon. I have a request. Can you do a video, similar to this one where you force the AI to fire except this time, they're sitting in a turret or a vehicle of some sort. This script doesn't really work for pilots/ gunners/ etc. Helicopters fire flares and turrets don't fire much of anything. Cheers.
@billu52972 жыл бұрын
So how do u make them shoot at multiple targets
@markosrba027911 ай бұрын
Hi Raven, hope you are doing great! Happy New Year, hope to see you again on youtube
@beanie84652 жыл бұрын
This worked for me for what I wanted to do. Thank you so much.
@rodocamilo2 жыл бұрын
first of all, great video... now i want to ask, is there a way to make them (AI) shoot at bursts? when using "sleep 4" they fire like 2 bullets and stop, can it be like fire 3 seconds, wait 1 second and fire 3 seconds and so on?
@blackfalco33 Жыл бұрын
Hi Raven! Thanks for this, I wanted to ask you if you know a way about how to make AI Shoot while on animation.
@rockspirestudio58175 жыл бұрын
Man... you are my hero, how can I connect with you. Do you have skype or discord.I had to go through the half the internet to find the solution for ARMA III. Thank you! It's really helpful.
@WhiteRaven5 жыл бұрын
Glad to help & when I catch up with the requests I may look into live chats or streaming?
@MarkoSRBa3 жыл бұрын
Just what I needed! Thank you very much sir!
@WhiteRaven3 жыл бұрын
You are very welcome but also check out the advanced version as you can do more with it
@MarkoSRBa3 жыл бұрын
@@WhiteRaven Will do, thank you! :)
@soarsoar42184 жыл бұрын
Do you think it'd be possible to make it work with a trigger? I'm trying to make an MG shot at a target as soon as you activate a trigger by stepping too close but I'm in a bit of a stall
@WhiteRaven4 жыл бұрын
I'll look into it for you but please bear with me as I have a queue of requests & will get on it as soon as I can
@soarsoar42184 жыл бұрын
@@WhiteRaven A well thanks man, no rush of course. I managed to make the AI shot by puting your script in the trigger and replacing this by the unit's name, but he won't shot at the specific target for some reason.
@socket_4164 жыл бұрын
thanks for sharing With us
@WhiteRaven4 жыл бұрын
You're very welcome. FYI I made a better version. Look for Advanced version.
@usrmtc16013 ай бұрын
Awesome video tutorial, I’m trying to get my M60 machine gunner to shoot automatic on range is there a way ? Thanks a million
@WhiteRaven3 ай бұрын
Check out the advanced version I did: kzbin.info/www/bejne/ZqDTpK16hZ2Lj9U
@michaelharwood88484 жыл бұрын
Thank you! Do you think this might also work for a laserdesignator (instead of say, a rifle?) making an ai laser target an object? Cheers!
@ravens44134 жыл бұрын
Thanks! I'll look into it for you but please bear with me as I have a queue of requests & will get on it as soon as I can
@darkhean1507 Жыл бұрын
my question is can you do it with rockets ? also using triggers instead of "this" tried my self and dont work
@jakmc773 жыл бұрын
so this only works if your using pop up and static targets? i'm trying to have AA fire at aircraft and into the sky
@luinker1235 жыл бұрын
How would you use a trigger to make the AI shoot 3 times, once every 5 seconds and then stop? Im trying to do a 21 gun volley
@WhiteRaven5 жыл бұрын
I'll look into that for you but bear with me as I have a queue of requests.
@luinker1235 жыл бұрын
@@WhiteRaven No worries, i got it to work.
@WhiteRaven5 жыл бұрын
@@luinker123 Good effort!
@stefankalafior4 жыл бұрын
@@luinker123 how?
@luinker1234 жыл бұрын
@@stefankalafior I dont remember exactly but i took a script from the official forums and modified it to stop after the 3rd loop.
@Wretched_YT4 жыл бұрын
Not sure if you are still responding, but when using this the AI run out of ammo. What am I missing?
@WhiteRaven4 жыл бұрын
I have produced an advanced version - check it out as I have made many improvements
@usrmtc16018 ай бұрын
Awesome video, how do I make the AI stop moving from the spot?
@WhiteRaven8 ай бұрын
In the Ai's init section, paste this: this disableAI "MOVE";
@usrmtc16018 ай бұрын
@@WhiteRaven thanks for your reply I did that I think it’s on of the Ai mods screwing with it
@WhiteRaven8 ай бұрын
You can also add: this setUnitPos "UP"; (This will make them stand. Replace UP with MIDDLE if you want them crouching & DOWN if you want them prone).
@usrmtc16018 ай бұрын
@@WhiteRaven ok I will do that, thanks
@usrmtc16018 ай бұрын
@@WhiteRaven You the boss man, thanks it working
@HTacticalMartialArts5 жыл бұрын
Thank you for sharing this interesting script. But when I tried it to RPG soldier, he tried to shoot but he carried it over his shoulder. And he repeated this action 3, or 4 times. Do you know how to make unit shoot RPG to the target?
@WhiteRaven5 жыл бұрын
You have to play about with the timing... so sleep 8 works well for the RPG, make sure the unit has no primary or sidearm and the timing of the reload animation will probably look out. Good luck!
@HTacticalMartialArts3 жыл бұрын
@@WhiteRaven thx man but plz tell me how to use this code with trigger and my unit name is ea1
@WhiteRaven3 жыл бұрын
@@HTacticalMartialArts Also have you watched my advanced version as it is a lot easier & you can do more with it Check that out & let me know if you're still struggling. kzbin.info/www/bejne/ZqDTpK16hZ2Lj9U
@truthseeker80824 жыл бұрын
Thank You bro, it is amazing, i had so much fun with it! Cheers and all of you who watch his videos subscribe to his channel now. Peace.
@WhiteRaven4 жыл бұрын
Thanks & glad it was helpful. FYI this is the advanced version which works a lot better: kzbin.info/www/bejne/ZqDTpK16hZ2Lj9U
@joshuamiller285 жыл бұрын
Thanks mate, works fantastic
@WhiteRaven5 жыл бұрын
Glad it helped
@relaxedtactical83194 жыл бұрын
I'm unclear on why it requires the gamelogic at all. The wiki for the 'action' command seems to indicate I could just use the unit itself. Is there some Arma blackbox thing about not using the unit itself for its own 'useweapon' action? EDIT: Never mind! I found this comment in the UseWeapon action description: "NOTE: If 'unitOne' is player object, the player goes into pick up animation before action is performed. If 'unitOne' is a game logic, the action is performed immediately with no animation."
@WhiteRaven4 жыл бұрын
Don't worry about this too much I am currently working on a new version for multiple targets and with vehicles too. It will be released soon so keep an eye out for it
@DrunkScout5 жыл бұрын
Another good vid man. I had a question. What mods are you running if any? I find it hard to find some of the suggested mods in the workshop as there are about twenty iterations of mods like zeus. Any suggestions on that? Thanks again for the good content.
@WhiteRaven5 жыл бұрын
Thanks and I'm not running any MODs in this tutorial. As far as what MODs to use... that would depend on what you are playing. So If you are running a server or something with your mates then I suggest using MODs from Armaholic esp as that's where most originate. If you are on a 3rd party server i.e a milsim group they 'should' have the information for you (which MODs and where to get them from) if they don't use Arma3sync. If you are using A3launcher to get on specific servers then they will force you to download wherever they get them from. Hope that helps.
@DrunkScout5 жыл бұрын
@@WhiteRaven Perfect. I was not sure if the editor had full functionality without certain mods as me and a friend play co-op online and so far have been running custom missions. I'll stick with what we have until I'm more accustomed to it. Thanks for the fast response mate! Messing with convoys and air support right now. This game is a trip! Thanks again!
@WhiteRaven5 жыл бұрын
@@DrunkScout no problem just give me a shout if you get stuck. Plus expect to loose more hours editing than playing lol
@DrunkScout5 жыл бұрын
As of right now I have over 40 hours logged in the short time I've owned it. Realistically probably 10 afk hrs looking at editing tutorials, 15 editing and 15 playing /editing? Lol
@kainlinpei42624 жыл бұрын
Is there a place where we can read up on the use of ALL the scripts? Great video.
@WhiteRaven4 жыл бұрын
Thanks & best to start with the arma community wiki
@play3r4366 жыл бұрын
Great video once more Raven, i am speciel into the sniper shooting with the AI, i do have one question about the way they fire, can you make them use the Bi-pod on the weapon by script or is that just not possible to do ? And how do i make it so the AI does not run out of ammo. Never mind on the Ammo question found this " this addeventhandler ["fired", {(_this select 0) setvehicleammo 1}];" and put it inside your script.. Like this :: null = this spawn {_this dotarget t6; sleep 0.5; while {alive t6 and alive _this} do {sleep 4; gl action ["useweapon",vehicle _this,_this,0]; _this addeventhandler ["fired", {(_this select 0) setvehicleammo 1}]; }}; but they don't do is a Magazine change anymore. do you know if that can be fixed so they change magazine.
@WhiteRaven6 жыл бұрын
Good question & I can't think of a way off the top of my head plus I read somewhere that weapon resting is client-side interface-dependent code. So initially I would say no but I hate to give up that easily...maybe an animation first if there is such one? Let me know if you manage to find something and I'll let you know if I do.
@play3r4366 жыл бұрын
@@WhiteRaven "RifleReloadProneMMG02" found this one in the unknown section in animation viewer now it's just to put it inside the script you made.. c",)
@play3r4366 жыл бұрын
@@WhiteRaven null = this spawn { _this dotarget t1; sleep 0.5; _this addEventHandler ["Reloaded",{ _unit = _this select 0 ; _mag = _this select 4 select 0 ; _unit addMagazine _mag ; }] ; while {alive t1 and alive _this} do { sleep 0.3; [_this,currentWeapon _this] call BIS_fnc_fire; } ; } ; This gives unlimited ammo for the AI shooter with a MAG change when AI runs out of ammo in magasine.
@idate88934 жыл бұрын
hi there Lars, i tried your code on a tank and rhino but the gunner only fires the machine gun rather than the normal tank rounds. I'm fairly new to scripting in arma 3, pls help me thanks in advance :D
@frazer32494 жыл бұрын
@@play3r436 I've tried using this code but for some reason, it doesn't work, have you any ideas?
@dogemoon58712 жыл бұрын
I got it but. They dont want to shoot full auto
@dreadroberts72835 жыл бұрын
Raven , bro how do you get AI NOT to shoot in a prisoner style situation ??? i want to set up a prison break but cant keep the guard from shooting the prisoners. please help.
@WhiteRaven5 жыл бұрын
I'll look into that for you but bear with me as I have a queue of requests.
@kevinvic89205 жыл бұрын
Hey raven, I have a bit problem here. So, with this scripts i wanted to make a civilian shooting the target like the video did, then i place some civilian too around the area. But, those some civilian were afraid when the other civilian started shooting. They began to crouch and looks scared. I put "playMove" animation code to unit init to look more realistic. I also set their behavior to careless, but it didn't work. Can you make those some civilian not afraid of the shooting? Make them not crouch. Sorry for my English btw 😁. Thanks
@WhiteRaven5 жыл бұрын
Hi the easiest way to stop the other civilians hitting the deck or running away is to (a) set the stance to 'stand up' and (b) paste the following in their init... this disableai "move" ...(for each civilian) - Hope that helps.
@kevinvic89205 жыл бұрын
@@WhiteRaven well, your suggestion just need one more, which is disable their "FSM" too. And for units that have "playMove" code, i disable the unit animation (i don't know how it work but it actually works), so the unit just looping the animation from "playMove" code. Thx btw, you helped a lot 👍
@WhiteRaven5 жыл бұрын
@@kevinvic8920 Glad I could help
@kevinvic89205 жыл бұрын
@@WhiteRaven i have one more question, can you make custom radio chat with sound? Like an ai talk to the other when you come near them, and also from base talk to you with mission instructions/briefings. I'm sorry to bother you again 😁 Thanks
@WhiteRaven5 жыл бұрын
@@kevinvic8920 No problem & yes both are possible. A proximity sound is fairly simple and a msg from base can be done a couple of different ways so leave it with me and I'll create a video on how to. But give me a while as this will be 3rd request in the queue lol - Thanks
@GolfFoxtrotCharlie-gfc4 жыл бұрын
Does this only work with vanilla units? Im not able to get it to work at all. They just stand there and aim but never fire. It works just fine with Vanilla units but any DLC units ect it wont work with. Is there anything that need be typed into the game logic?
@WhiteRaven4 жыл бұрын
I have replaced this with an advanced version use that method instead kzbin.info/www/bejne/ZqDTpK16hZ2Lj9U
@daytonguenneguez64214 жыл бұрын
Hi, thanks for this but, u have a command to unit cease fire ?
@WhiteRaven4 жыл бұрын
Glad it helped & I'll look into it for you but please bear with me as I have a queue of requests & will get on it as soon as I can
@The_Wolf745 жыл бұрын
can you do the same thing with fighter jets?
@ravens44134 жыл бұрын
Thanks! I'll look into it for you but please bear with me as I have a queue of requests & will get on it as soon as I can
@loganpeters83664 жыл бұрын
how can u change it to make them burst and can u tell me how to make them burst a certain amount of bullets
@WhiteRaven4 жыл бұрын
Don't worry about this too much I am currently working on a new version for multiple targets and with vehicles too. It will be released soon so keep an eye out for it
@gerardocastorena11442 жыл бұрын
Awesome video man 👍
@djogm55863 жыл бұрын
I still don’t know what tf to do, I’m making a d day landing map and idk what to script for anything, anyone have videos on this?
@WhiteRaven3 жыл бұрын
Check out my advanced version & it also has links to my scripts so you can use them
@djogm55863 жыл бұрын
White Raven thank u so much🙏🏼
@corsairs30373 жыл бұрын
He so I'm making a DDay mission and I have this script working with an AA and it works targeting the plane of my choice, but when I switch it to night the don't shoot how can I change this ?
@WhiteRaven3 жыл бұрын
Have you tried the advanced version? kzbin.info/www/bejne/ZqDTpK16hZ2Lj9U
@corsairs30373 жыл бұрын
@@WhiteRaven I'll have a look, I did temporarily fix it buy downloading a hidden NVG mod and scripted that those would be deleted on death which worked
@corsairs30373 жыл бұрын
@@WhiteRaven worked absolutely fantastic mate cheers +1 sub
@WhiteRaven3 жыл бұрын
@@corsairs3037 That great glad it helped & was it the advanced version?
@corsairs30373 жыл бұрын
@@WhiteRaven yep
@giorgiosauerborn69352 ай бұрын
can i use it to make ai fight each other?
@giorgiosauerborn69352 ай бұрын
like make a simu of 2 squads fighting?
@WhiteRaven2 ай бұрын
@@giorgiosauerborn6935 It depends what you why you want Ai to fight each other. If its just to create ambient war zone then best is to just have 2 factions against each other and have them continuously spawn in or god mode on them if you don't want to get involved with them.
@JACKSONSNIPER934 жыл бұрын
Hi, after uploading a shooting range to the server with this script, the AI could not reload the weapon, yet they were full of magazines, they kept pressing the trigger and that's it, they never reloaded ... it's a common problem or I could having babbled something?
@WhiteRaven4 жыл бұрын
I'm not sure as this is an old video/script but I'll look into it for you but please bear with me as I have a queue of requests & will get on it as soon as I can
@marccenteno61145 жыл бұрын
is there any other way to make ai change their rate of fire i mean can they do burst fire or shoot 2 bullets before resting again
@WhiteRaven5 жыл бұрын
Change the 4 (sleep 4)
@hellschicken61975 жыл бұрын
Edit: How do I stop the AI from shooting at the target after spotting an enemy? As for now, they will engage an enemy if they spot him, but after the enemy encounter is dealt with, they continue shooting at the target
@WhiteRaven5 жыл бұрын
So do you want them to stop when an enemy is in the area and then continue shooting targets once enemies have bee neutralised?
@hellschicken61975 жыл бұрын
@@WhiteRaven Hehe, no. I want them to stop engaging the targets I've pre-placed, attack the enemy encounter - and then stop firing at the pre-placed targets.
@StillerSight6 жыл бұрын
hey do u know how to get missions to spawn randomly kinda like invade and annex for local game bc it dont work on local
@WhiteRaven6 жыл бұрын
Hi have you tried the workshop MOD: 'Dynamic Universal War System - Rebirth' I have used it and it's great! Here is the steam workshop link: steamcommunity.com/sharedfiles/filedetails/?id=393315278 Is this what you mean?
@leehill84374 жыл бұрын
why did u not give us info on the module
@WhiteRaven4 жыл бұрын
There is a new advanced version of this check it out
@lichu50205 жыл бұрын
How to make the shooter will point at target?
@WhiteRaven5 жыл бұрын
Hi the unit will not point at the target if the target name you entered is not correct. If you have followed the video guide correctly then I suggest checking all the names for spelling errors. Hope that helps
@lexatuan38935 жыл бұрын
thank yoouuuuu Keep going with make vids :D
@ravens44134 жыл бұрын
Thank you : )
@frazer32494 жыл бұрын
anyone know how to make them reload after they empty a magazine, and then carry on shooting? Many thanks in advance
@WhiteRaven4 жыл бұрын
I created a newer version, try this instead: kzbin.info/www/bejne/ZqDTpK16hZ2Lj9U
@arma3turkishmovies8315 жыл бұрын
thanks bro :)
@WhiteRaven5 жыл бұрын
Glad it helped
@spartan41195 жыл бұрын
how to use tanks and vehicle to shoot object😀😀
@WhiteRaven5 жыл бұрын
I'll look into that for you but bear with me as I have a queue of requests.
@spartan41195 жыл бұрын
@@WhiteRaven requests
@davebuss21624 жыл бұрын
@@WhiteRaven Looking for an answer to this as well. I have seen some examples on bistudio: gameLogic action ["useWeapon", unit1, unit1,16]; gameLogic action ["useWeapon", vehicle unit1, unit1, 0]; gameLogic action ["useWeapon", myTank, gunner myTank, 1]; gameLogic action ["useWeapon", myTank, commander myTank, 0]; Would be awesome to have vehicles (tanks, helicopters, planes) actually shell buildings prior to infantry moving into clear.
@ravens44134 жыл бұрын
@@davebuss2162 I'll look into it for you both but please bear with me as I have a queue of requests & will get on it as soon as I can
@spartan41194 жыл бұрын
OK bro 😊😊
@DylanCabidig5 жыл бұрын
I Was Think How to make ai/Tank shoot at an Vehicle or target
@WhiteRaven5 жыл бұрын
I will have a look into it for you but am in the middle of other requests so bear with me
@cryo9shadow914 жыл бұрын
Any chance you know how to make a unit you've spawned load with the loadout you've selected in BI Virtual Arsenal? Because everytime I click "play as this person", it reverts back to the loadout that the model loaded with
@WhiteRaven4 жыл бұрын
Thanks! I'll look into it for you but please bear with me as I have a queue of requests & will get on it as soon as I can
@vertex10293 жыл бұрын
thanks very much but i wish you had explained the code
@TristanCoombe5 жыл бұрын
Love the Channel you've got a like comment and sub from me