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 / Pick up script?

Author
Message
Killer666
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: Inside your Emails causing a VIRUS!
Posted: 19th Oct 2008 15:32
Now this is my first thread I haved searched and come up with nothing, and I cant script to save my life, but looking at some of the scripts you guys have done this may not be a problem.

My question is:

Is it possible to have a pick up system e.g In one of my levels I have like 8 weapons scatted around one room but when I wonder around I pick them all up when I dont want to so is it possible to have a script were you walk up to a weapon and it says "Press (a button) to pick up a Axe"

?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Oct 2008 11:23
Yes... make your text into an image with a transparent background (or a .bmp with a solid black background will work, too)

In your script, load up the text as a HUD. When the player is within range of picking up the weapon, have it display the text HUD you loaded and also fade it out on the same line.

Now also check for the player pressing the needed keyboard key to pick it up and when they press it while in range, have it pick up the weapon...


Those are my tips for you. We don't take requests, so I'm doing the best I can by hinting you in the right direction.

I suggest reading some scripting tutorials and learning to script. It's not very difficult and it's sure better to make your own scripts than to wait on people to make them for you.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
Killer666
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: Inside your Emails causing a VIRUS!
Posted: 20th Oct 2008 20:19
cool man thanks and also your Mod doesn't seem to work it comes up with an error and I really want it with the blocking thing so cool! and the grenade launcher gun were did you get that?

?

Login to post a reply

Server time is: 2024-11-24 13:28:28
Your offset time is: 2024-11-24 13:28:28