OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Flauta on 11 Jan 2005, 23:22:58

Title: Help! Using a killing counter Only when a Scrpits is running...
Post by: Flauta on 11 Jan 2005, 23:22:58
 ???there is a Killing Counter commando or a script can i use while I exec a Script? (like Max Payne), for Slowing the TimeAcc when  You kill someone... and when deactivating the scrpit and activating it again, it starts whin new 0 counter???

I Joust konw English a little, If you dont underandestand something... ask!

Tanks anyway! ;D
Title: Re:Help! Using a killing counter Only when a Scrpits is running...
Post by: Triggerhappy on 11 Jan 2005, 23:55:31
lets see... you want to count how many kills you get, and slow down time whenever you get a kill.  I think I missed something in there but I'm having trouble understanding you. What do you mean start it with a new counter?
Title: Re:Help! Using a killing counter Only when a Scrpits is running...
Post by: Flauta on 12 Jan 2005, 00:20:33
your right!!!! thanks!!!! i mean, when you exec again the script, dont begin whit the last counter, start with a new one, For example, when I activate the scrpit, timeAcc is  0.9, when i kill a man timeAcc is "timeAcc (-0.1)" (so it wil be 0.8), and when I deactivate, when activate the script again, timeacc is 0.9 again, and not 0.8...
Title: Re:Help! Using a killing counter Only when a Scrpits is running...
Post by: Flauta on 12 Jan 2005, 00:23:35
ha! and there is, maybe a game Bug!, SkipTime doesnt work when im inside a Vehicule...

maybe this is Wrong?:
? changing=1 : goto "byebye"

? (accTime != 1): goto "coolDown"

Changing=1

hint "Hunger! payn! Storms to your mind!"
setacctime 0.9
Skiptime 2
~0.2
setacctime 0.7
Skiptime 2
~0.2
setacctime 0.5
Skiptime 2
~0.2
setacctime 0.3
Skiptime 2
~0.2
setacctime 0.2
Skiptime 2

changing = 0

goto "ByeBye"

#coolDown

changing = 1
hint "Your mind is in peace"
setacctime 0.3
Skiptime (22)
~0.25

setacctime 0.5
Skiptime (22)
~0.25

setacctime 0.7
Skiptime (22)
~0.25

setacctime 0.9
Skiptime (22)
~0.25
setacctime 1
Skiptime (22)
~0.25
setacctime 1.1
~0.1
setacctime 1.2
~0.25
setacctime 1.1
~0.1
setacctime 1

Changing = 0
#ByeBye

this make a Really good Dawn atmosphere... but not when im inside a Vehicle! (i tested it Piloting a AH-64)

..Should I use an other external Scrpit?