Arma 3 Mission Editing: Make Ai Shoot Object

  Рет қаралды 25,949

White Raven

White Raven

Күн бұрын

Пікірлер: 128
@Shadowfan4
@Shadowfan4 3 жыл бұрын
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
@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.6076
@vaughnf.6076 4 жыл бұрын
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.
@WhiteRaven
@WhiteRaven 4 жыл бұрын
You're very welcome
@NickeoProductions
@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.
@billu5297
@billu5297 2 жыл бұрын
So how do u make them shoot at multiple targets
@markosrba0279
@markosrba0279 11 ай бұрын
Hi Raven, hope you are doing great! Happy New Year, hope to see you again on youtube
@beanie8465
@beanie8465 2 жыл бұрын
This worked for me for what I wanted to do. Thank you so much.
@rodocamilo
@rodocamilo 2 жыл бұрын
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
@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.
@rockspirestudio5817
@rockspirestudio5817 5 жыл бұрын
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.
@WhiteRaven
@WhiteRaven 5 жыл бұрын
Glad to help & when I catch up with the requests I may look into live chats or streaming?
@MarkoSRBa
@MarkoSRBa 3 жыл бұрын
Just what I needed! Thank you very much sir!
@WhiteRaven
@WhiteRaven 3 жыл бұрын
You are very welcome but also check out the advanced version as you can do more with it
@MarkoSRBa
@MarkoSRBa 3 жыл бұрын
@@WhiteRaven Will do, thank you! :)
@soarsoar4218
@soarsoar4218 4 жыл бұрын
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
@WhiteRaven
@WhiteRaven 4 жыл бұрын
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
@soarsoar4218
@soarsoar4218 4 жыл бұрын
@@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_416
@socket_416 4 жыл бұрын
thanks for sharing With us
@WhiteRaven
@WhiteRaven 4 жыл бұрын
You're very welcome. FYI I made a better version. Look for Advanced version.
@usrmtc1601
@usrmtc1601 3 ай бұрын
Awesome video tutorial, I’m trying to get my M60 machine gunner to shoot automatic on range is there a way ? Thanks a million
@WhiteRaven
@WhiteRaven 3 ай бұрын
Check out the advanced version I did: kzbin.info/www/bejne/ZqDTpK16hZ2Lj9U
@michaelharwood8848
@michaelharwood8848 4 жыл бұрын
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!
@ravens4413
@ravens4413 4 жыл бұрын
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
@darkhean1507 Жыл бұрын
my question is can you do it with rockets ? also using triggers instead of "this" tried my self and dont work
@jakmc77
@jakmc77 3 жыл бұрын
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
@luinker123
@luinker123 5 жыл бұрын
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
@WhiteRaven
@WhiteRaven 5 жыл бұрын
I'll look into that for you but bear with me as I have a queue of requests.
@luinker123
@luinker123 5 жыл бұрын
@@WhiteRaven No worries, i got it to work.
@WhiteRaven
@WhiteRaven 5 жыл бұрын
@@luinker123 Good effort!
@stefankalafior
@stefankalafior 4 жыл бұрын
@@luinker123 how?
@luinker123
@luinker123 4 жыл бұрын
@@stefankalafior I dont remember exactly but i took a script from the official forums and modified it to stop after the 3rd loop.
@Wretched_YT
@Wretched_YT 4 жыл бұрын
Not sure if you are still responding, but when using this the AI run out of ammo. What am I missing?
@WhiteRaven
@WhiteRaven 4 жыл бұрын
I have produced an advanced version - check it out as I have made many improvements
@usrmtc1601
@usrmtc1601 8 ай бұрын
Awesome video, how do I make the AI stop moving from the spot?
@WhiteRaven
@WhiteRaven 8 ай бұрын
In the Ai's init section, paste this: this disableAI "MOVE";
@usrmtc1601
@usrmtc1601 8 ай бұрын
@@WhiteRaven thanks for your reply I did that I think it’s on of the Ai mods screwing with it
@WhiteRaven
@WhiteRaven 8 ай бұрын
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).
@usrmtc1601
@usrmtc1601 8 ай бұрын
@@WhiteRaven ok I will do that, thanks
@usrmtc1601
@usrmtc1601 8 ай бұрын
@@WhiteRaven You the boss man, thanks it working
@HTacticalMartialArts
@HTacticalMartialArts 5 жыл бұрын
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?
@WhiteRaven
@WhiteRaven 5 жыл бұрын
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!
@HTacticalMartialArts
@HTacticalMartialArts 3 жыл бұрын
@@WhiteRaven thx man but plz tell me how to use this code with trigger and my unit name is ea1
@WhiteRaven
@WhiteRaven 3 жыл бұрын
@@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
@truthseeker8082
@truthseeker8082 4 жыл бұрын
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.
@WhiteRaven
@WhiteRaven 4 жыл бұрын
Thanks & glad it was helpful. FYI this is the advanced version which works a lot better: kzbin.info/www/bejne/ZqDTpK16hZ2Lj9U
@joshuamiller28
@joshuamiller28 5 жыл бұрын
Thanks mate, works fantastic
@WhiteRaven
@WhiteRaven 5 жыл бұрын
Glad it helped
@relaxedtactical8319
@relaxedtactical8319 4 жыл бұрын
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."
@WhiteRaven
@WhiteRaven 4 жыл бұрын
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
@DrunkScout
@DrunkScout 5 жыл бұрын
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.
@WhiteRaven
@WhiteRaven 5 жыл бұрын
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.
@DrunkScout
@DrunkScout 5 жыл бұрын
@@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!
@WhiteRaven
@WhiteRaven 5 жыл бұрын
@@DrunkScout no problem just give me a shout if you get stuck. Plus expect to loose more hours editing than playing lol
@DrunkScout
@DrunkScout 5 жыл бұрын
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
@kainlinpei4262
@kainlinpei4262 4 жыл бұрын
Is there a place where we can read up on the use of ALL the scripts? Great video.
@WhiteRaven
@WhiteRaven 4 жыл бұрын
Thanks & best to start with the arma community wiki
@play3r436
@play3r436 6 жыл бұрын
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.
@WhiteRaven
@WhiteRaven 6 жыл бұрын
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.
@play3r436
@play3r436 6 жыл бұрын
@@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",)
@play3r436
@play3r436 6 жыл бұрын
@@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.
@idate8893
@idate8893 4 жыл бұрын
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
@frazer3249
@frazer3249 4 жыл бұрын
@@play3r436 I've tried using this code but for some reason, it doesn't work, have you any ideas?
@dogemoon5871
@dogemoon5871 2 жыл бұрын
I got it but. They dont want to shoot full auto
@dreadroberts7283
@dreadroberts7283 5 жыл бұрын
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.
@WhiteRaven
@WhiteRaven 5 жыл бұрын
I'll look into that for you but bear with me as I have a queue of requests.
@kevinvic8920
@kevinvic8920 5 жыл бұрын
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
@WhiteRaven
@WhiteRaven 5 жыл бұрын
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.
@kevinvic8920
@kevinvic8920 5 жыл бұрын
@@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 👍
@WhiteRaven
@WhiteRaven 5 жыл бұрын
@@kevinvic8920 Glad I could help
@kevinvic8920
@kevinvic8920 5 жыл бұрын
@@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
@WhiteRaven
@WhiteRaven 5 жыл бұрын
@@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-gfc
@GolfFoxtrotCharlie-gfc 4 жыл бұрын
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?
@WhiteRaven
@WhiteRaven 4 жыл бұрын
I have replaced this with an advanced version use that method instead kzbin.info/www/bejne/ZqDTpK16hZ2Lj9U
@daytonguenneguez6421
@daytonguenneguez6421 4 жыл бұрын
Hi, thanks for this but, u have a command to unit cease fire ?
@WhiteRaven
@WhiteRaven 4 жыл бұрын
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_Wolf74
@The_Wolf74 5 жыл бұрын
can you do the same thing with fighter jets?
@ravens4413
@ravens4413 4 жыл бұрын
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
@loganpeters8366
@loganpeters8366 4 жыл бұрын
how can u change it to make them burst and can u tell me how to make them burst a certain amount of bullets
@WhiteRaven
@WhiteRaven 4 жыл бұрын
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
@gerardocastorena1144
@gerardocastorena1144 2 жыл бұрын
Awesome video man 👍
@djogm5586
@djogm5586 3 жыл бұрын
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?
@WhiteRaven
@WhiteRaven 3 жыл бұрын
Check out my advanced version & it also has links to my scripts so you can use them
@djogm5586
@djogm5586 3 жыл бұрын
White Raven thank u so much🙏🏼
@corsairs3037
@corsairs3037 3 жыл бұрын
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 ?
@WhiteRaven
@WhiteRaven 3 жыл бұрын
Have you tried the advanced version? kzbin.info/www/bejne/ZqDTpK16hZ2Lj9U
@corsairs3037
@corsairs3037 3 жыл бұрын
@@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
@corsairs3037
@corsairs3037 3 жыл бұрын
@@WhiteRaven worked absolutely fantastic mate cheers +1 sub
@WhiteRaven
@WhiteRaven 3 жыл бұрын
@@corsairs3037 That great glad it helped & was it the advanced version?
@corsairs3037
@corsairs3037 3 жыл бұрын
@@WhiteRaven yep
@giorgiosauerborn6935
@giorgiosauerborn6935 2 ай бұрын
can i use it to make ai fight each other?
@giorgiosauerborn6935
@giorgiosauerborn6935 2 ай бұрын
like make a simu of 2 squads fighting?
@WhiteRaven
@WhiteRaven 2 ай бұрын
@@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.
@JACKSONSNIPER93
@JACKSONSNIPER93 4 жыл бұрын
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?
@WhiteRaven
@WhiteRaven 4 жыл бұрын
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
@marccenteno6114
@marccenteno6114 5 жыл бұрын
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
@WhiteRaven
@WhiteRaven 5 жыл бұрын
Change the 4 (sleep 4)
@hellschicken6197
@hellschicken6197 5 жыл бұрын
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
@WhiteRaven
@WhiteRaven 5 жыл бұрын
So do you want them to stop when an enemy is in the area and then continue shooting targets once enemies have bee neutralised?
@hellschicken6197
@hellschicken6197 5 жыл бұрын
@@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.
@StillerSight
@StillerSight 6 жыл бұрын
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
@WhiteRaven
@WhiteRaven 6 жыл бұрын
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?
@leehill8437
@leehill8437 4 жыл бұрын
why did u not give us info on the module
@WhiteRaven
@WhiteRaven 4 жыл бұрын
There is a new advanced version of this check it out
@lichu5020
@lichu5020 5 жыл бұрын
How to make the shooter will point at target?
@WhiteRaven
@WhiteRaven 5 жыл бұрын
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
@lexatuan3893
@lexatuan3893 5 жыл бұрын
thank yoouuuuu Keep going with make vids :D
@ravens4413
@ravens4413 4 жыл бұрын
Thank you : )
@frazer3249
@frazer3249 4 жыл бұрын
anyone know how to make them reload after they empty a magazine, and then carry on shooting? Many thanks in advance
@WhiteRaven
@WhiteRaven 4 жыл бұрын
I created a newer version, try this instead: kzbin.info/www/bejne/ZqDTpK16hZ2Lj9U
@arma3turkishmovies831
@arma3turkishmovies831 5 жыл бұрын
thanks bro :)
@WhiteRaven
@WhiteRaven 5 жыл бұрын
Glad it helped
@spartan4119
@spartan4119 5 жыл бұрын
how to use tanks and vehicle to shoot object😀😀
@WhiteRaven
@WhiteRaven 5 жыл бұрын
I'll look into that for you but bear with me as I have a queue of requests.
@spartan4119
@spartan4119 5 жыл бұрын
@@WhiteRaven requests
@davebuss2162
@davebuss2162 4 жыл бұрын
@@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.
@ravens4413
@ravens4413 4 жыл бұрын
@@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
@spartan4119
@spartan4119 4 жыл бұрын
OK bro 😊😊
@DylanCabidig
@DylanCabidig 5 жыл бұрын
I Was Think How to make ai/Tank shoot at an Vehicle or target
@WhiteRaven
@WhiteRaven 5 жыл бұрын
I will have a look into it for you but am in the middle of other requests so bear with me
@cryo9shadow91
@cryo9shadow91 4 жыл бұрын
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
@WhiteRaven
@WhiteRaven 4 жыл бұрын
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
@vertex1029
@vertex1029 3 жыл бұрын
thanks very much but i wish you had explained the code
@TristanCoombe
@TristanCoombe 5 жыл бұрын
Love the Channel you've got a like comment and sub from me
@WhiteRaven
@WhiteRaven 5 жыл бұрын
Thanks
Arma 3: Laser Designate Ai Support
9:25
White Raven
Рет қаралды 18 М.
Arma 3 Eden Editor Tutorial | AI CAS and Artillery Support
10:45
OnlineCombatBN
Рет қаралды 29 М.
ArmA 3 - Eden Editor Tips for Aircraft in Missions [2K]
14:55
Viper1Zero
Рет қаралды 99 М.
Arma 3: How To Create An Animated Briefing
20:26
White Raven
Рет қаралды 850
Arma 3 | Create task from intel pickup!
4:36
Fells
Рет қаралды 37 М.
Arma 3 Mission Editing: Creating an Intro
15:35
White Raven
Рет қаралды 33 М.
Arma 3 "Below the wire" Air insertion AI script
7:25
Arma 3 Eden Editor BASIC Trigger Tutorial
17:29
Schlimster
Рет қаралды 157 М.
HOW TO MAKE AWESOME ARMA 3 MISSIONS! - Editor/Zeus Tutorial
21:04
OperatorDrewski
Рет қаралды 597 М.
Arma 3 Editor Tutorial - Animations
20:26
Feuerex
Рет қаралды 178 М.
Arma 3: How To Create Cutscenes
13:23
White Raven
Рет қаралды 611
Arma 3 Editing | Basic Mission Tasks & Triggers
15:20
OnlineCombatBN
Рет қаралды 109 М.