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

Script load without pressing key

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

New Member
New Member


Joined: 13 Jun 2022
Posts: 21

69 Bank Notes
Items

PostPosted: Sun Jul 10, 2022 7:01 pm    Post subject: Script load without pressing key Reply with quote

I have problem with script. It load when I start game not when i press key.
dim_flt 1
dim_act 3
dim_frm 3
findactor 0, "Tommy"
findframe 0, "Tommy"

label norm
commandblock 0
commandblock 1
findnearactor 0, 1, Car
ctrl_read 1, HORN1
if flt[1]=0, norm, -1
compareownerwithex 0, 1, -1, norm
human_setproperty 0,300,Energy
commandblock 0
goto 2

label 2
commandblock 1
emitparticle 0,20,0
playsound "pump.wav", 0, 70, 1
car_unbreakable 1,1
car_setspeed 1, 190
camera_getfov 3
commandblock 0
label 3
commandblock 0
commandblock 1
let flt[3] = flt[3] * 1.05
camera_setfov flt[3]
if flt[3] >140, -1, 3
label 4
commandblock 0
commandblock 1
let flt[3] = flt[3] * 0.98
camera_setfov flt[3]
if flt[3] < 75, -1, 4
commandblock 0
wait 5000
goto norm
Back to top
View user's profile Send private message
ASM.

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 10 Jan 2014
Posts: 335

693 Bank Notes
Items

PostPosted: Tue Jul 19, 2022 7:20 pm    Post subject: Script load without pressing key Reply with quote

The
Code:
dim_flt 1

is incorrect. The way the script is written requires at least 4 flts so the line should read
Code:
dim_flt 4

instead.
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.012 | Queries: 18