Stunt Island Tutorial #5: Seek and strike another object. Carlos Ribas of Prodigy asked about having another aircraft hunt you down and ram into you. He was doing a set where the chasing aircraft had no weapons and had to ram the other aircraft. There are two ways to do this. The first method has you flying the lead aircraft, and you use events to have the chasing plane catch up to you and ram into you. As you will see, this does not achieve a realistic effect. When an aircraft SEEKs another, it proceeds in a straight line without any pitch or yaw. If you fly in a straight line without any twists or turns, you can achieve a fairly realistic scene, but who wants an action sequence without any twists and turns! File Name :SETS\FIND&HIT.SET Printed at :Tue Feb 09 10:14:10 1993 Stunt Title :Have an object ram you. Initial Recorder :On First Take :0 Crash Penalty :0 Equipment Status :Gear Down Flaps Up Brakes Off Time of Day :12:00 Init Play View :Pilot w/Cockpit Init Camera View :1 Initial Weapon :None Maximum Takes :99 Take Penalty :0 Prop #1 Prop Name :Curtis Jenny Method :Face Watch :Off Watch Object :1 Zoom :1 Autozoom :Off N/S :100947 E/W :88178 Altitude :63 Pitch :0 Pitch Anim :0 Roll :0 Roll Anim :0 Yaw :90 Yawing Anim :0 Speed :90 Visible :On Collision :On Explosion :Off Shadow :On Locked :Off Placed :On Prop #2 Prop Name :Spotter Plane Method :Spot Method Object :1 Watch :On Watch Object :1 Zoom :1 Autozoom :Off Distance :91 Distance Anim :0 Offset Pitch :-14 Offset Pitch Anim :0 Offset Yaw :359 Offset Yaw Anim :0 Visible :Off Collision :Off Explosion :Off Shadow :Off Locked :Off Placed :On This is the chase aircraft, and to make sure it does as much animating towards your aircraft, turn it's Watch ON, and make sure it's watch object is your aircraft. This will ensure that it point towards your aircraft as it is ramming into it! It starts off in the FOLLOW method, and through the use of a collision window and events programming, I changed it to hunt down the aircraft in prop slot 1. Prop #9 Prop Name :Curtis Jenny Method :Follow Method Object :1 Watch :On Watch Object :1 Distance :639 Distance Anim :0 Offset Pitch :0 Offset Pitch Anim :0 Offset Yaw :0 Offset Yaw Anim :0 Visible :On Collision :On Explosion :Off Shadow :On Locked :Off Placed :On Prop #10 Prop Name :18000X18000 Method :Free Watch :Off Watch Object :1 N/S :100947 E/W :88928 Altitude :0 Pitch :0 Pitch Anim :0 Roll :0 Roll Anim :0 Yaw :90 Yawing Anim :0 Speed :0 Acceleration :0 Heading Pitch :0 Heading Pitch Anim :0 Heading Yaw :90 Heading Yaw Anim :0 Visible :Off Collision :On Explosion :Off Shadow :Off Locked :Off Placed :On This event tells the chase aircraft to switch it's method to FREE, and start accelerating towards the other aircraft. After I get it's speed and acceleration set, I change it's METHOD to SEEK and it's METHOD OBJECT to the aircraft in Prop Slot 1. The reason for setting the speed is that the aircraft was initially set to FOLLOW, and was using the SPEED of the aircraft in prop slot 1. When it is switched to FREE, it has no SPEED, so one must be set immediately in order for the plane to keep flying. Event#1 One Shot If Curtis Jenny(1) hits 18000X18000(10) And nothing And nothing Then change Curtis Jenny(9)'s method to Free And change Curtis Jenny(9)'s speed to 90 And change Curtis Jenny(9)'s acceleration to 2 And change Curtis Jenny(9)'s method to Seek And change Curtis Jenny(9)'s method obj to 1 And do nothing And do nothing And do nothing I think the point of this next event is obvious. Since I used a collision window, I couldn't just set the planes to COLLIDEABLE and EXPLODEABLE. Event#2 One Shot If Curtis Jenny(9) hits Curtis Jenny(1) And nothing And nothing Then explode Curtis Jenny(1) And explode Curtis Jenny(9) And play 'Explosion#7' on chan 1, vol= 4. And do nothing And do nothing And do nothing And do nothing And do nothing In this version of the set, you are now flying the chase plane. It is up to you to hit the other plane. I didn't provide a lot of twists and turns in this one either since I am flying with a mouse temporarily, and it is hard to do a smooth bank with a mouse on my PC. You could use events to program the pursued aircraft to bank and turn and pitch up or down to look like it's trying to get away from you. That would add some realism to the stunt. It's up to you how you want that to look, just experiment a little with events and collision windows. File Name :SETS\FIND&HT2.SET Printed at :Tue Feb 09 10:15:14 1993 Stunt Title :Have an object ram you. #2 Initial Recorder :On First Take :0 Crash Penalty :0 Equipment Status :Gear Down Flaps Up Brakes Off Time of Day :12:00 Init Play View :Pilot w/Cockpit Init Camera View :1 Initial Weapon :None Maximum Takes :99 Take Penalty :0 In this set, there are no collision windows, so you can set EXPLODEABILTY ON for both aircraft so that they explode on impact. Prop #1 Prop Name :Fokker DR.1 Method :Face Watch :Off Watch Object :1 Zoom :1 Autozoom :Off N/S :100947 E/W :88178 Altitude :64 Pitch :0 Pitch Anim :0 Roll :0 Roll Anim :0 Yaw :90 Yawing Anim :0 Speed :90 Visible :On Collision :On Explosion :On Shadow :On Locked :Off Placed :On Prop #2 Prop Name :Spotter Plane Method :Spot Method Object :1 Watch :On Watch Object :1 Zoom :1 Autozoom :Off Distance :25 Distance Anim :0 Offset Pitch :-14 Offset Pitch Anim :0 Offset Yaw :180 Offset Yaw Anim :0 Visible :Off Collision :Off Explosion :Off Shadow :Off Locked :Off Placed :On Prop #3 Prop Name :Camera#1 Method :Spot Method Object :9 Watch :On Watch Object :1 Zoom :1 Autozoom :Off Distance :41 Distance Anim :0 Offset Pitch :11 Offset Pitch Anim :0 Offset Yaw :9 Offset Yaw Anim :0 Visible :Off Collision :Off Explosion :Off Shadow :Off Locked :Off Placed :On Prop #9 Prop Name :Curtis Jenny Method :Free Watch :Off Watch Object :1 N/S :100947 E/W :88817 Altitude :63 Pitch :0 Pitch Anim :0 Roll :0 Roll Anim :0 Yaw :90 Yawing Anim :0 Speed :80 Acceleration :0 Heading Pitch :0 Heading Pitch Anim :0 Heading Yaw :90 Heading Yaw Anim :0 Visible :On Collision :On Explosion :On Shadow :On Locked :Off Placed :On I just threw in one event to make the lead Jenny pitch up a little as you pursue it. You could take this example a lot farther and really make the Jenny twist and turn to get away. Event#1 One Shot If 1 seconds have elapsed And nothing And nothing Then change Curtis Jenny(9)'s heading pitch to 2 And change Curtis Jenny(9)'s heading pitch anim to 2 And wait 3 seconds And change Curtis Jenny(9)'s heading pitch to 0 And change Curtis Jenny(9)'s heading pitch anim to 0 And do nothing And do nothing And do nothing Event#2 One Shot If Curtis Jenny(9) hits Fokker DR.1(1) And nothing And nothing Then play 'Explosion#7' on chan 1, vol= 4. And do nothing And do nothing And do nothing And do nothing And do nothing And do nothing And do nothing