FAQFAQ    Board RulesBoard Rules    SearchSearch    LotteryLottery    RouletteRoulette    UsergroupsUsergroups
     RegisterRegister  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Shop    Log inLog in 
View posts since last visitView your postsView unanswered posts

Following a car script

 
Post new topic   Reply to topic    Mafiascene.com Forum Index -> Ask a Modder - Modding
View previous topic :: View next topic  
Author Message
mammix

Junior Member
Junior Member


Joined: 20 Sep 2014
Posts: 64
Location: Lublin, Poland
1455 Bank Notes
Items

PostPosted: Fri Dec 27, 2019 3:11 pm    Post subject: Following a car script Reply with quote

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
View user's profile Send private message
Melhior

Junior Member
Junior Member


Joined: 25 Dec 2014
Posts: 39
Location: Russian
568 Bank Notes
Items

PostPosted: Fri Dec 27, 2019 10:52 pm    Post subject: Re: Following a car script Reply with quote

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
View user's profile Send private message
mammix

Junior Member
Junior Member


Joined: 20 Sep 2014
Posts: 64
Location: Lublin, Poland
1455 Bank Notes
Items

PostPosted: Sat Dec 28, 2019 12:27 am    Post subject: Following a car script Reply with quote

That makes the actor want to follow the car on foot, no matter what Sad
Back to top
View user's profile Send private message
Hunter

Senior Member
Senior Member


Joined: 21 Mar 2013
Posts: 358

2256 Bank Notes
Items

PostPosted: Sat Dec 28, 2019 3:06 am    Post subject: Following a car script Reply with quote

I'm assuming the truck following in that cutscene in A Trip to the Country is just a fixed path...
Back to top
View user's profile Send private message Send e-mail
mammix

Junior Member
Junior Member


Joined: 20 Sep 2014
Posts: 64
Location: Lublin, Poland
1455 Bank Notes
Items

PostPosted: Sat Dec 28, 2019 9:39 pm    Post subject: Following a car script Reply with quote

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
View user's profile Send private message
Hunter

Senior Member
Senior Member


Joined: 21 Mar 2013
Posts: 358

2256 Bank Notes
Items

PostPosted: Sun Dec 29, 2019 8:11 am    Post subject: Following a car script Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Mafiascene.com Forum Index -> Ask a Modder - Modding All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Generation Time: 0.740 | Queries: 18