OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Messiah on 06 Jun 2003, 01:46:20

Title: timer on spy satelite
Post by: Messiah on 06 Jun 2003, 01:46:20
well... because i want to make an accurate mission and not make it too easy for the player, i want to puty a timer on the spy satelite script by vektorboson....

now heres what i've written so far:

Code: [Select]
#loop

1 setradiomsg "Spy Satelite"

Hint "Bird is overhead. Select satelite view by using Radio Alpha."

~40

Hint "Uplink Lost."
1 setradiomsg "null"

~60

goto "loop"

so basically every 60s the player can activate the spysatelite via radio alpha, and then has 40 secs before uplink is lost... the problem is, if the player is using the satelite (uses dialogues) then he can use it past the 40s mark... so i need to know what to add to kick the player off the satelite?

cheers (LCD, u'r pretty good at stuff like this  ;) ]
Title: Re:timer on spy satelite
Post by: LCD on 06 Jun 2003, 01:59:50
add

closedialog 0

tel me if it works ;D

LCD OUT
Title: Re:timer on spy satelite
Post by: Messiah on 06 Jun 2003, 09:33:47
cheers.... will try it now  :D
Title: Re:timer on spy satelite
Post by: Messiah on 06 Jun 2003, 10:05:39
works like a dream mate.... nice one :thumbsup: