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

Guard

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

New Member
New Member


Joined: 02 Oct 2018
Posts: 17

578 Bank Notes
Items

PostPosted: Thu Apr 16, 2020 2:40 pm    Post subject: Guard Reply with quote

Hi, I need to consult the script about the vehicle's guard

enemy_vidim 0
dim_flt 3
dim_act 8
dim_frm 3
findactor 0, ""
findactor 1, "Tommy"
findactor 3, "corka"
act_setstate 4, active

label 1
car_muststeal 3,1

label 6
ifplayerstealcar 3, 0
if flt[0] = 1, -1, 8

label 7
ifplayerstealcar 3, 1
if flt[0] = 1, -1, 5

label 5
enemy_vidim 1
enemy_talk 0, 16990451, 1
enemy_playanim "pozorzlodejr.i3d", 0, simple
let flt[0] = flt[0] - 323
wait flt[0]
enemy_stopanim

label 8
enemy_vidim 0
enemy_playanim "Vyhlizeni202.i3d", 0, simple
let flt[0] = flt[0] - 323
wait flt[0]
enemy_stopanim
goto 8


it is at the stage that the watchman is still just looking, but when I start stealing the car nothing happens, please help, thank you Smile
Back to top
View user's profile Send private message
zdenda55

Junior Member
Junior Member


Joined: 30 Sep 2017
Posts: 42
Location: Czech Republic
51 Bank Notes
Items

PostPosted: Thu Apr 16, 2020 4:12 pm    Post subject: Guard Reply with quote

Wait I try it in game
Back to top
View user's profile Send private message
zdenda55

Junior Member
Junior Member


Joined: 30 Sep 2017
Posts: 42
Location: Czech Republic
51 Bank Notes
Items

PostPosted: Thu Apr 16, 2020 4:20 pm    Post subject: Guard Reply with quote

This should work. It didn't worked, because his animation was locked in label and it didn't go back to script.

enemy_vidim 0
dim_flt 10
dim_act 10
dim_frm 10
findactor 0, ""
findactor 1, "Tommy"
findactor 3, "corka"
//act_setstate 4, active
enemy_playanim "Vyhlizeni202.i3d"


label 1
car_muststeal 3,1

label 6
ifplayerstealcar 3, 0
if flt[0] = 1, 5, 6


label 5
enemy_vidim 1
enemy_talk 0, 16990451, 1
enemy_playanim "pozorzlodejr.i3d", 0, simple
let flt[0] = flt[0] - 323
wait flt[0]
enemy_stopanim
Back to top
View user's profile Send private message
TondmiCZ

New Member
New Member


Joined: 02 Oct 2018
Posts: 17

578 Bank Notes
Items

PostPosted: Thu Apr 16, 2020 6:02 pm    Post subject: Guard Reply with quote

Thank you Smile its work Smile
Back to top
View user's profile Send private message
zdenda55

Junior Member
Junior Member


Joined: 30 Sep 2017
Posts: 42
Location: Czech Republic
51 Bank Notes
Items

PostPosted: Thu Apr 16, 2020 6:11 pm    Post subject: Re: Guard Reply with quote

You're welcome.
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.017 | Queries: 18