That's the third time you are asking the same question which was answered already 2 times
French gui wrote:
Quote: "Try to fix this one yourself: look at the 3rd line: you're constantly reseting your timer and freeze the player... "
ctm wrote:
Quote: "The radio script does not work because in state=2 is the timerstart and the timergreater condition!
Scripts are looping. That means the timer gets started every frame again. So the timer cannot become greater than 3000:
:state=2:timerstart,plrdisable=10000,fpgcrawtext=Did this radio just turn itself on? How?
:state=2,timergreater=3000:state=3"
Again:
It cannot work because you had a endless loop in
state=2.
In your new script the endless loop is in
state=1.
You are starting (resetting) the timer again and again.
timergreater=3000 will never ever become TRUE:
Change this (your code):
----------------------------------
:state=
1:timerstart,plrdisable=3000,fpgcrawtext=You hear piano music close by.
:state=
1,timergreater=3000:state=
2
----------------------------------
to that:
(text will stay on screen for 3 seconds)
----------------------------------
:state=
1:timerstart,plrdisable=3000,state=
2
:state=
2:fpgcrawtext=You hear piano music close by.
:state=
2,timergreater=3000:state=
3
----------------------------------
or that:
(text will vanish very fast)
----------------------------------
:state=
1:timerstart,plrdisable=3000,fpgcrawtext=You hear piano music close by.,state=
2
:state=
2,timergreater=3000:state=
3
----------------------------------
or in words:
Whenever you start a timer you have to change the condition (state) to avoid a endless loop.
Hope this helps
addendum:
If this still does not work for you then there must be something wrong with your FPSC installation.
The action
plrdisable can be found in the addendum for FPSC v.1.17.
That implies that it is a new action and will only work with the new FPSC version.