View previous topic :: View next topic |
Author |
Message |
mammix
Junior Member


Joined: 20 Sep 2014 Posts: 97 Location: Lublin, Poland 3526 Bank Notes
Items
|
|
Hello everyone!
I want to force 1 car to follow a 2nd car, but I can't seem to make it work. I can only force 1 to hunt 2 (which doesn't really work for me), as there is no (I think) script for a car to follow anything (there is a script for an actor-person to do so, but it doesn't work when he is a driver).
I tried to go past it by making the driver to a frame (the 2nd car) in a loop, but unfortunately that does not work smoothely, if at all.
Is there any way to make it work that I missed by any chance?
Thanks for help! |
|
Back to top |
|
 |
Melhior
Junior Member


Joined: 25 Dec 2014 Posts: 52 Location: Russian 594 Bank Notes
Items
|
|
mammix wrote: | Hello everyone!
I want to force 1 car to follow a 2nd car, but I can't seem to make it work. I can only force 1 to hunt 2 (which doesn't really work for me), as there is no (I think) script for a car to follow anything (there is a script for an actor-person to do so, but it doesn't work when he is a driver).
I tried to go past it by making the driver to a frame (the 2nd car) in a loop, but unfortunately that does not work smoothely, if at all.
Is there any way to make it work that I missed by any chance?
Thanks for help! |
The script would show its own. Have you tried using enemy_action_follow? And as an actor, you can specify not the player, but the first car. |
|
Back to top |
|
 |
mammix
Junior Member


Joined: 20 Sep 2014 Posts: 97 Location: Lublin, Poland 3526 Bank Notes
Items
|
|
That makes the actor want to follow the car on foot, no matter what  |
|
Back to top |
|
 |
Hunter
Senior Member


Joined: 21 Mar 2013 Posts: 418 Location: Eugene 2365 Bank Notes
Items
|
|
I'm assuming the truck following in that cutscene in A Trip to the Country is just a fixed path... |
|
Back to top |
|
 |
mammix
Junior Member


Joined: 20 Sep 2014 Posts: 97 Location: Lublin, Poland 3526 Bank Notes
Items
|
|
The truck that Paulie is driving uses a script that makes him drive to a frame, which unfortunately doesn't work if you have to reach a moveable object.
As far as the enemies go in the mission you mention, they use the hunt script, which is no use for me, as that means they try to bump me, attack or push me, while I just want them to follow me peacefully... |
|
Back to top |
|
 |
Hunter
Senior Member


Joined: 21 Mar 2013 Posts: 418 Location: Eugene 2365 Bank Notes
Items
|
|
Yes. The truck which follows the truck which Paulie is driving. During the cutscene leaving the warehouse, not during the escape. Just making sure. |
|
Back to top |
|
 |
|
|