BetterDeadThanZed Posted April 17, 2014 Report Share Posted April 17, 2014 I'm using DZMS and I've added an AI vehicle patrol by taking the script for the vehicle patrol from Wicked AI (WAI) and making some small changes. I have two problems. First, the AI on the mounted gun won't shoot at me. Second, once the gunner is killed, the vehicle blows up. I'm hoping someone with more experience with this stuff can help me figure out how to fix these problems. Here's the DZMSVehiclePatrol.sqf that was originally the WAI script, with minor modifications for my use: http://pastebin.com/zua5KA39 Here's a video showing the AI vehicle patrol: http://www.youtube.com/watch?v=SM65RX1YwsI Link to comment Share on other sites More sharing options...
Sukkaed Posted April 17, 2014 Report Share Posted April 17, 2014 This is blowing up the vehicle _veh addEventHandler ["GetOut",{(_this select 0) setFuel 0;(_this select 0) setDamage 1;}]; Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted April 17, 2014 Author Report Share Posted April 17, 2014 This is blowing up the vehicle _veh addEventHandler ["GetOut",{(_this select 0) setFuel 0;(_this select 0) setDamage 1;}]; I've actually just removed that and was going to test it. Any suggestions on why the vehicle patrol isn't shooting at me? Link to comment Share on other sites More sharing options...
SwinRyan Posted April 17, 2014 Report Share Posted April 17, 2014 hi BetterDeadThanZed can you make a quick little intructrions on how i install this or if i send you the files could you install it for me thanks . and what scripts do you have and what ones are useful Link to comment Share on other sites More sharing options...
Sukkaed Posted April 17, 2014 Report Share Posted April 17, 2014 I've actually just removed that and was going to test it. Any suggestions on why the vehicle patrol isn't shooting at me? Dunno. Did you check that gunner has ammo? I have noticed that setVehicleAmmo 1; doesn't always work for some reason. Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted April 17, 2014 Author Report Share Posted April 17, 2014 hi BetterDeadThanZed can you make a quick little intructrions on how i install this or if i send you the files could you install it for me thanks . and what scripts do you have and what ones are useful Once it's working to my satisfaction I'll be posting instructions. Dunno. Did you check that gunner has ammo? I have noticed that setVehicleAmmo 1; doesn't always work for some reason. I have no way to check if he has ammo. I'm relying on setVehicleAmmo. Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted April 17, 2014 Author Report Share Posted April 17, 2014 I got it working. I was spawning in DZE vehicles instead of DZ, so they didn't come with ammo. :) Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now