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 / Help with a health gun script (using ply's mod)

Author
Message
darimc
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Canada
Posted: 4th Nov 2009 02:14 Edited at: 4th Nov 2009 02:25
Hey guys, I tried to make a basic script so that when a certain gun is fired, it gives you health... But I can't manage to get it to work. I am applying the script to a dynamic entity which is always active, but no luck...

Script:


Any help would be appreciated.

bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 4th Nov 2009 05:59
The script never gets to state 1.

come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 4th Nov 2009 08:23
Is this with Ply's Mod or Project Blue/Green?


If you're not able to make weapon scripts (like you can with both Project Blue and Green) then you're going about it the right way, just change this line:
:state=0,plrfiredweap=scifi\tavor, plraddhealth=2
To:
:state=0,plrfiredweap=scifi\tavor:plraddhealth=2

You need to have that second colon in there


If you are using Project Blue or Green, then I'd suggest doing this with a weapon script instead. Just make a script for your health-giving weapon and instead of using "fireweapon" to make the weapon shoot, set up a custom anim with your firing animation frames, play that custom animation and increase the player's health. It'll look much smoother and will work in ALL levels, not just the one with your script active.


The one and only,


darimc
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Canada
Posted: 4th Nov 2009 22:29 Edited at: 4th Nov 2009 22:34
@Plystire, Oh... Yeah, I am using Project Green... So how would I make a weapon script to give me health?

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Nov 2009 00:13 Edited at: 5th Nov 2009 00:14
Whoops, my bad... Project Green doesn't have weapon scripting.
(PG has PB1.6, which didn't have weapon scripting either.)

Sorry, I don't have very good backtrack memory. PB1.7 has it, so I must have been thinking of that.


The one and only,


darimc
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Canada
Posted: 5th Nov 2009 00:54
Alright, this way works anyways. Thanks for the help, have one on me!

Login to post a reply

Server time is: 2024-11-25 07:54:43
Your offset time is: 2024-11-25 07:54:43