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 / Press R than Playerwobble

Author
Message
maxiqueen123
15
Years of Service
User Offline
Joined: 26th May 2009
Location:
Posted: 24th May 2012 00:09
hi i would like to make a script but something is wrong

can you tell me wats worng ?



Your signature has been erased by a mod - Please reduce it to 600x120 maximum size.
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 24th May 2012 00:20 Edited at: 24th May 2012 01:03
First, use "etimer". Second, you use "etimerstart" and "etimergreater=3000". The "etimerstart" is an action, and the "etimergreater=x" is the condition. Your syntax was incorrect.

So your script should be:




Twitter: @NFoxMedia
Ross tra damus
3D Media Maker
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 24th May 2012 00:59
Is this going to be attached to a 'trigger zone'?
Is this going to be attached to a 'entity'?

I ask because if it is going to be in a entity's FPE file you may want to add the 'plrdistwithin' command at the begining of the script.

All the best of luck.
maxiqueen123
15
Years of Service
User Offline
Joined: 26th May 2009
Location:
Posted: 24th May 2012 01:07
Ohh Thx very nice it works

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size.
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 24th May 2012 01:10
Quote: "Ohh Thx very nice it works"


It should. I never post a script without testing.

You are welcome.


Twitter: @NFoxMedia
maxiqueen123
15
Years of Service
User Offline
Joined: 26th May 2009
Location:
Posted: 24th May 2012 07:47
I have an other question

the same thing but iff you press W A S or D

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size.
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 24th May 2012 10:31 Edited at: 24th May 2012 10:32
simply change scancodekeypressed=x to the needed number for WASD. you find the numbers-sheet in the official community guide in your doc-folder, page 31/32 if i remember right.

p.s.: trust the fox as long as you are not a chicken.

maxiqueen123
15
Years of Service
User Offline
Joined: 26th May 2009
Location:
Posted: 24th May 2012 10:47
No thats not that i mean...

i woulg like to have One script tat player wobble iff i press

W A S or D

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size.
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 24th May 2012 12:46 Edited at: 24th May 2012 12:47
nicht so faul, maxi^^

would be something like:

;Artificial Intelligence Script

;Header

desc = Press WASD to wobble for 3 seconds

;Triggers

:state=0:state=1
:state=1,scancodekeypressed=x(W):plrwobble=30,state=2
:state=1,scancodekeypressed=x(A):plrwobble=30,state=2
:state=1,scancodekeypressed=x(S):plrwobble=30,state=2
:state=1,scancodekeypressed=x(D):plrwobble=30,state=2
:state=2:etimerstart,state=3
:state=3,etimergreater=3000:plrwobble=0,state=1

;End of Script

exchange =x (WASD) for the numbers on the keypad-sheet, i am on the wrong machine atm. you can also alter the effect for each keypressed by changing plrwobble or use other effects(and add them in state=3 to set them back to 0).

gz

maho

maxiqueen123
15
Years of Service
User Offline
Joined: 26th May 2009
Location:
Posted: 24th May 2012 14:38 Edited at: 24th May 2012 14:51
Ok thanks it works perfectly

but i would like to have motionsickness when press shift
its not so perfectly hereĀ“s mine



Your signature has been erased by a mod - Please reduce it to 600x120 maximum size.
The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 24th May 2012 14:59
@maxiqueen123

you can use :plrrunning:posteffect=motionsickness
in your script. I don't know if the command is posteffect though.

-TZK

maxiqueen123
15
Years of Service
User Offline
Joined: 26th May 2009
Location:
Posted: 24th May 2012 15:32 Edited at: 24th May 2012 15:33
ok i try it but dotn work

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size.
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 31st May 2012 21:27
The command is setposteffect=motionsickness.


Official LightStorm Engine BETA Tester
/?m=forum_view&t=190541&b=21
maxiqueen123
15
Years of Service
User Offline
Joined: 26th May 2009
Location:
Posted: 3rd Jun 2012 12:03
ok thanks

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size.
The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 3rd Jun 2012 12:09
@Marc Steene
Yeah, thanks. I forgot what that command was.

@MaxiQueen123
You probably figured it out already, but use this script:



-TZK

Login to post a reply

Server time is: 2024-11-24 01:15:05
Your offset time is: 2024-11-24 01:15:05