View previous topic :: View next topic |
Author |
Message |
TondmiCZ
New Member


Joined: 02 Oct 2018 Posts: 21
92 Bank Notes
Items
|
|
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  |
|
Back to top |
|
 |
zdenda55
Junior Member


Joined: 30 Sep 2017 Posts: 46 Location: Czech Republic 59 Bank Notes
Items
|
|
Back to top |
|
 |
zdenda55
Junior Member


Joined: 30 Sep 2017 Posts: 46 Location: Czech Republic 59 Bank Notes
Items
|
|
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 |
|
 |
TondmiCZ
New Member


Joined: 02 Oct 2018 Posts: 21
92 Bank Notes
Items
|
|
Thank you its work  |
|
Back to top |
|
 |
zdenda55
Junior Member


Joined: 30 Sep 2017 Posts: 46 Location: Czech Republic 59 Bank Notes
Items
|
|
Back to top |
|
 |
|
|
|
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
|