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 / Player Scripting

Author
Message
Fps n00b
15
Years of Service
User Offline
Joined: 24th Apr 2009
Location:
Posted: 12th May 2009 21:14
I want to make it so that when your health is low your guy pants.
What do you apply the script to so that this affects the player?
The Next
Web Engineer
16
Years of Service
User Offline
Joined: 3rd Dec 2007
Location: United Kingdom
Posted: 12th May 2009 21:18 Edited at: 12th May 2009 21:19
We have a scripting board you know why not post there.

I think what you mean by this is the camera moves up and down more violently if you are hurt. If not please elaborate. Also you need to use a trigger zone so that when the player goes through it is activated.

Kravenwolf
15
Years of Service
User Offline
Joined: 14th Apr 2009
Location: Silent Hill
Posted: 12th May 2009 21:21
I think what he is asking for is a way to make the player pant when he is injured (like in COD). As in, when his health is low, an audio file of a guy gasping will start, and loop until the player finds health.


-Kravenwolf

Success is not final--failure is not eternal.
The Next
Web Engineer
16
Years of Service
User Offline
Joined: 3rd Dec 2007
Location: United Kingdom
Posted: 12th May 2009 21:25
Oh well thats not hard at all im sure someone can whip that up i have seen it before on an older FPSC Game.

Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 12th May 2009 21:25
plrhealthgreater=

plrhealthless=

Those will help you. Good luck.

Thraxas
Retired Moderator
18
Years of Service
User Offline
Joined: 8th Feb 2006
Location: The Avenging Axe, Turai
Posted: 13th May 2009 02:23
Quote: "We have a scripting board you know why not post there.
"


Maybe as a newer user, not here even a month, they are unaware of all the boards available. Maybe in future you could employ a more friendly way of explaining to newer users all boards available.

I will move this to the scripting board where I'm sure one of our script gurus will be more able to show you the best way to achieve what you are after

Fps n00b
15
Years of Service
User Offline
Joined: 24th Apr 2009
Location:
Posted: 13th May 2009 04:21
Thanks, but is there a specific think I should apply the "plrhealthless=x" to or does it not matter.
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 13th May 2009 04:35 Edited at: 13th May 2009 04:37
Edit: You know what, I'm not sure I know what I'm talking about yet, so why don't you just wait for someone who does



Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 13th May 2009 05:56
Sorry, I was brief there. That command makes it so when the player health is lower than X, something happens. So what you do is this.




Of course, you must edit this, but you add this to your global script

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 13th May 2009 07:31
I suggest downloading the Official Community Guide, or looking at the one in your "FPS Creator/Docs" folder.

It has many scripting tutorials that may help you to understand scripting better.


The one and only,


Fps n00b
15
Years of Service
User Offline
Joined: 24th Apr 2009
Location:
Posted: 13th May 2009 18:20
What is the global script and were do you go to edit it?
(total noob here!)
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 13th May 2009 19:21
That can ALSO be found in the official community guide.
(Seriously, guys. Go read it...)


"FPS Creator/Files/languagebank/english/gamebank/mygame/setuplevel.fpi"


The one and only,


Fps n00b
15
Years of Service
User Offline
Joined: 24th Apr 2009
Location:
Posted: 13th May 2009 21:20
I DID read it but i guess I wasn't paying attention enough!

Login to post a reply

Server time is: 2024-11-25 01:42:25
Your offset time is: 2024-11-25 01:42:25