Home   Help Search Login Register  

Author Topic: damn AI  (Read 532 times)

0 Members and 1 Guest are viewing this topic.

Sol Fire

  • Guest
damn AI
« on: 30 Mar 2003, 23:23:52 »
i have a truck with 2 ai in it

driver and a pasanger(bolth Civilian) to sneak a truck load of U.S Soldiers near a town and drop them off

the passenger is needed to be in the truck otherwise one of the soldiers end up siting in front in plain veiw wich i dont want!

and the passanger jumps out of the truck at the first site of the Soviets causeing the truck to drive really slow and off the roaqd while the passenger runs 20 or 30 feet behind is trying to catch up and get back in!

not very good is it?

so how do i keep him from being able to get out?

thanks

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:d**n AI
« Reply #1 on: 30 Mar 2003, 23:41:32 »
That's a bit odd.    You could try locking the vehicle.    Or assignAsCargo the civvy (as well as moveInCargo), that should encourage him to stay in.   Or have a gamelogic in the passenger seat instead of a civvy, I think you can do that.
Plenty of reviewed ArmA missions for you to play

Sol Fire

  • Guest
Re:d**n AI
« Reply #2 on: 31 Mar 2003, 00:01:28 »
i found out why he jumped out all the time

i had him grouped with Driver so driver ordered him to jump out when Soviet were spotted  >:(

i ungrouped him and he no longer jumps out.. now i just have to figure out how to keep this dumb idiot driver from driving off the road!  :(
« Last Edit: 31 Mar 2003, 00:07:08 by Sol Fire »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:d**n AI
« Reply #3 on: 31 Mar 2003, 00:10:17 »
Ahh, so he jumped out of the truck because you never told him to stay in it? ;D

Increase the skill of the driver.    Put him on behaviour safe.    Start him in a slightly different place.     Place the waypoints right on the road and far apart.

But in the end of the day AI drivers are very annoying.

If all else fails try a different stretch of road if you can.  
Plenty of reviewed ArmA missions for you to play

Sol Fire

  • Guest
Re:d**n AI
« Reply #4 on: 31 Mar 2003, 00:56:02 »
the AI guy was grouped with the driver so driver see's the soviets and tells passenger to jump out

i have a UAZ drive down the same road (same skill *full*) and he doesnt swerve all over but the civilian in the PV3S Civil swerves all over on High Skill

the Soviet drove fin the Civilian didnt.. hmm

maybe switch the car to a Ural and driver to spy and use setcaptive command so he doesnt get shot

might work..

its too bad such a great game has such crappy drivers.. there is only one road leading too the town that is going to be attacked
(Regina)

Offline OFPWiZard

  • Members
  • *
Re:d**n AI
« Reply #5 on: 31 Mar 2003, 03:28:38 »
Hello

Ok heres some information:

PV3S CIVIL Name:  v1
Driver Name:  c1
Passenger CIVIL Name:  c1

Here how to make the passenger not be able to get out of the truck:

Heres what to do if you want the passenger not to get out:
If you want the passenger not to get out in the window for the Passenger (c1) have his Vehical Lock:  Locked.  Whenever you want him able to get out have a trigger or whatever you want to let him able to, put this in the On Acitivation Field:   c2 lock false.  Before all this put this in the Initilization Field of (c1):   c1 playMove moveInDriver v1 (If you want the person to be in the truck in the beginning of the mission have playMove = switchMove, if not keep it playMove so he will move into the truck on his own.  Same with the passenger  c2 but in his Initilization Field out this: c2 playMove moveInCargo v1.

Heres what to do to make the drive go faster and maybe not get shot, also with the passenger:

PV3S CIVIL Name:  v1
Driver Name:  c1
Passenger CIVIL Name:  c1

Something like Macguba said, have the behaviour safe, put these command lines in the Initilization Field of (c1 and c2), also have the enmey's not shot the driver and passenger;
c1 setBehaviour "SAFE"; c1 setCaptive true v1
c2 setBehaviour "SAFE"; c1 setCaptive true  v1

If you don't want them captive after where ever they are going make a trigger so they are not captive, you do this by changing the true in ( c1 setBehaviour "SAFE"; c1 setCaptive true v1
c2 setBehaviour "SAFE"; c1 setCaptive true  v1 ) to false.

Here what to do if you want it to look like there no west soldies in the truck while they are passing the enemy base (or whatever you are doing):

PV3S CIVIL Name:  v1
Driver Name:  c1
Passenger CIVIL Name:  c1

This is easy just make the soldiers name and make the command line in a trigger before the base  like this;
unitName setBehaviour "SAFE"; unitName setCaptive true  v1 ).
This will make the enemy not shot the truck at all...

Hope this will help, if this is not what you want just tell me.

Thanks
Bye

Sol Fire

  • Guest
Re:d**n AI
« Reply #6 on: 31 Mar 2003, 05:00:31 »
thanks for info

i got driver to stay on road by setting him to Careless instead of safe that way when he see's the russians he doesnt get "Scared"

thus making him stay on road as best he can no longer swerving all over the place

i have no problems keeping enemy from shooting at me whilein the truck since the truck is run by a Civilian and russians wont shoot Civilian they wont shoot truck since its "freindly" to them and the PV3S Civil has a Convinient flap over the back making it so the enemy cant see the men in back  ;)

now that he is Careless he drives fine but on Safe once he seen enemy he would Swerve like crazy and that in my oppinion would give him away

so now this is working fine.. thank you guys for your input