Forum Jump :

Author Message


Posts: 76
Rank:


Level: Member

Country: au
Location:
Occupation: Student/DIY minor scripter
Age: 24
In-game name: Drew

 
#1 Posted at 2012-08-23 08:20        
     
Howdy, I am currently making a campaign in which you are you are being chased by a Vodnik and you are in a Humvee. Then, towards the end of the action sequence, the car chasing you get slammed into by another car. I have been testing this with various methods. For example, I tried turning off the AI Collision Avoid, but they just slow down and barely bump each other. I was wondering if there was another way to do this? Any help appreciated.

=Foxhound]You can add 250.004 smileys to your post but not a proper title and proper info?[/quote]

Author Message

Pirin  



Posts: 1547
Rank:


Level: Member

Country: us
Location: Atlanta, GA
Occupation: IT
Age: 46
In-game name: kylania

 
#2 Posted at 2012-08-23 15:57        
     
UnitCapture and UnitPlay to record yourself doing the driving and playing it back for the player. I'm not really sure how it's gonna work with a crash though, since it's usually used to avoid hitting things. :)

Or you could use tricks like setPos or setVelocity to move/push the vehicles into each other, but that's math and math is hard.

Or simply give them waypoints and let the AI crash themselves.


Advertisement


Author Message


Posts: 76
Rank:


Level: Member

Country: au
Location:
Occupation: Student/DIY minor scripter
Age: 24
In-game name: Drew

 
#3 Posted at 2012-08-24 11:33        
     
I checked out the UnitPlay and UnitCapture technique, worked perfectly. Thanks mate.

=Foxhound]You can add 250.004 smileys to your post but not a proper title and proper info?[/quote]

Author Message


Posts: 76
Rank:


Level: Member

Country: au
Location:
Occupation: Student/DIY minor scripter
Age: 24
In-game name: Drew

 
#4 Posted at 2012-09-14 07:58        
     
Well, finally got my car crash, using UnitCapture and UnitPlay. Putting a mine next the crash site makes for a pretty cool explosion. Much appreciated.

=Foxhound]You can add 250.004 smileys to your post but not a proper title and proper info?[/quote]