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

Actor not following player after killing an enemy

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

Junior Member
Junior Member


Joined: 18 Mar 2018
Posts: 34
Location: Mashhad, Iran
32 Bank Notes
Items

PostPosted: Sun Dec 30, 2018 4:29 pm    Post subject: Actor not following player after killing an enemy Reply with quote

There is a problem I have with Mafia 1.
I have an actor which Follows me with enemy_action_follow, He follows me, then when he kills a gangster or a Cop, He don't Stops Searching for another Enemy and don't follows me again. Crouches and Searches. Script:
dim_flt 1
dim_frm 1
dim_act 3
findactor 0, "Tommy"
findactor 1, "sam"
enemy_action_follow 0,10,CROUCH
human_addweapon 1, 10, 50, 200
Maybe that's a script to fix it.
_________________

At least Mafia 1 Modding is easier than Mafia 2 Modding Smile
Back to top
View user's profile Send private message Send e-mail
Wirmaple7321

Junior Member
Junior Member


Joined: 18 Mar 2018
Posts: 34
Location: Mashhad, Iran
32 Bank Notes
Items

PostPosted: Mon Dec 31, 2018 11:16 am    Post subject: Actor not following player after killing an enemy Reply with quote

nvm, I forgot the NOLINK thing.
_________________

At least Mafia 1 Modding is easier than Mafia 2 Modding Smile
Back to top
View user's profile Send private message Send e-mail
mammix

Member
Member


Joined: 20 Sep 2014
Posts: 107
Location: Lublin, Poland
10604 Bank Notes
Items

PostPosted: Sun Oct 10, 2021 5:53 pm    Post subject: Actor not following player after killing an enemy Reply with quote

I need to bump this.
Unfortunately, I have the same problem. Sam, who is supposed to follow me, forgets about following me as soon as he kills an enemy. He either sits in one place or runs to his death against 10 enemies or so.
I tried preety much everything. This is the script at this moment:

act_setstate -1,inactive
enemy_vidim 0
dim_act 50
dim_frm 50
dim_flt 50
findactor 0,"Tommy"
findactor 1,"Sam"
findactor 2,"Samscenka"
findactor 3,"wrog18"
findactor 4,"koniec"
findactor 5,"muzyka"
findactor 6,"wrog9"
findactor 7,"skrypt2"
findactor 8,"wrog10"

act_setstate 7,active
act_setstate 6,inactive

findframe 0,"wrog9"
frm_seton 0,0

act_setstate 4,active

ENEMY_GROUP_NEW 13
ENEMY_GROUP_ADD 13,1
ENEMY_GROUP_ADD 13,0

HUMAN_ADDWEAPON 1,9,7,777

HUMAN_RETURNFROMPANIC 1,1
enemy_brainwash

enemy_vidim 1

enemy_action_follow 0, 1, nolink, crouch, nonext

If anyone has any ideas how to make him a)follow me b) shoot bad guys who attack me, without waiting first for them to hurt me/him c) after bad guys are dead, to follow me again -
thank you in advance!
Back to top
View user's profile Send private message
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.028 | Queries: 18