Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Grrr, why isn't this working?

Author
Message
BadKarma
12
Years of Service
User Offline
Joined: 2nd Sep 2012
Location: The Old Gein Farm
Posted: 30th Sep 2012 05:46
I am trying to see how the slender effect works. Basically the player should be able to look at the character for a second before the player is hurt.

;Triggers

:state=0,timerstart
:state=0,plrdistwithin=300:state=1

:state=1,plrdistfurther=500:destroy
:state=1,timergreater=300,inview=1:rotatetoplr,animate=1,plraddhealth=-1
:state=1,inview=0:rotatetoplr,movefore=2,animate=2
The Nerevar
14
Years of Service
User Offline
Joined: 19th May 2010
Location: Vvardenfell
Posted: 30th Sep 2012 05:53
Try etimer commands.

Fulfilling the Nerevarine Prophecy, one trial at a time, because I... Am... The Nerevar!
BadKarma
12
Years of Service
User Offline
Joined: 2nd Sep 2012
Location: The Old Gein Farm
Posted: 30th Sep 2012 05:58
I did, I started with etimer but not sure how to implement them
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 30th Sep 2012 06:41
Quote: "I did, I started with etimer but not sure how to implement them"


Start here. Post shows both and how to use them. In your "state=0" line, the "timerstart" is an action and not a condition so it should be like this:

":state=0:timerstart"


Twitter: @NFoxMedia
BadKarma
12
Years of Service
User Offline
Joined: 2nd Sep 2012
Location: The Old Gein Farm
Posted: 30th Sep 2012 06:55
Thanks, but still have no idea how to do this. I am trying to let the player look at the character for just a second before the player is hurt and sees noise hud.


;Triggers

:state=0:timerstart
:state=0,plrdistwithin=300:state=1

:state=1,plrdistfurther=500:destroy
:state=1,timergreater=300,inview=1:rotatetoplr,animate=1,plraddhealth=-1
:state=1,inview=0:rotatetoplr,movefore=2,animate=2

Doesn't work!
BadKarma
12
Years of Service
User Offline
Joined: 2nd Sep 2012
Location: The Old Gein Farm
Posted: 30th Sep 2012 06:56
And etimer, doesn't work

;Triggers

:state=0:etimerstart
:state=0,plrdistwithin=300:state=1

:state=1,plrdistfurther=500:destroy
:state=1,etimergreater=300,inview=1:rotatetoplr,animate=1,plraddhealth=-1
:state=1,inview=0:rotatetoplr,movefore=2,animate=2
BadKarma
12
Years of Service
User Offline
Joined: 2nd Sep 2012
Location: The Old Gein Farm
Posted: 30th Sep 2012 07:54
Blah, finally got it! Thanks guys...
Killj0y17
12
Years of Service
User Offline
Joined: 15th Sep 2012
Location: In a pineapple, under the sea
Posted: 8th Oct 2012 16:04
maybe post how you got it to help others out? (including me)

Login to post a reply

Server time is: 2024-11-23 20:04:08
Your offset time is: 2024-11-23 20:04:08