Jump to content
Sign in to follow this  
Kirby

Getting a unit to chase a unit

Recommended Posts

How would i make it so a unit (Just foranexaple, lets say a cop, in a cop car) to chase anouther unit (Say a civilian in a normal car)?

Lets says cops are west and civs are east.

Is there a waypoint or something to do that? or even get a chopper to follow a car or person.

Share this post


Link to post
Share on other sites

For cars it could be hard, because ground vehicles can easily hit buildings or vegetation. The commands should be the same for ground and air vehicles. Something like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#startFollow

[_group, 0] setwppos getpos unitToFollow

[_group,10] setwppos getpos unitToFollow

~2

goto "startFollow"

This should do, altough you should have a trigger, which stops the group to follow the unit. Or you could use doMove.  _group is the group of the unit which is following the other guy. Read the command reference a bit.

Share this post


Link to post
Share on other sites

Hi,

possibly by using the waypoint action "destroy" or "seek and destroy". You should set the heli waypoint directly on that car to chase. Just ensure that you have removed all ammunition from the heli, otherwise it would blow up the car from a distance.

But it's just a guess, I did not test it!

good luck

Share this post


Link to post
Share on other sites

the chopper i have in mind has no weapons antway. lol.

Share this post


Link to post
Share on other sites

The Usermission forum is not for mission editing threads, that would be obvious if a brief moment were taken to look before posting.

Share this post


Link to post
Share on other sites

I noticed that after I posted banghead.gif . And why are all the forums for flashpoint so sig sensitive. every single other forum i go on the sig size is 125px max height crazy_o.gif

Share this post


Link to post
Share on other sites

Use "Join and lead" waypoint for the first car and "Join" for the second car (syncronize the waypoints). So, now one car will follow the other car around just like a platoon member will follow the platoon leader. I am not sure if thi will work for the enemies (will east unit join and lead the west unit?), try it out.

Share this post


Link to post
Share on other sites

That would look cool for, say, recording a small movie. but no good in game.

Anyone know of any recording thing thatll work on windows 98?

Share this post


Link to post
Share on other sites

What about doFollow, its in the comref.

helo doFollow car

Never used it so i dont know if it works with vehicles or not..

You could try to make the helo follow the guy and see if it works when the guy gets inside the car. You could use it has a condition too.

? player in car : helo doFollow car smile_o.gif .

Share this post


Link to post
Share on other sites

The best working solution for car chases I have found so far is this simple script someone posted on these forums:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_Car1=_this select 0

_car2=_this select 1

#Loop

_car2 domove (getpos _car1)

~1

goto "loop"

Call via [chased,chaser] exec "scriptname.sqs"

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×