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 / How To Make a "Detector" script

Author
Message
Tmass
13
Years of Service
User Offline
Joined: 2nd Jun 2011
Location:
Posted: 5th Jun 2011 23:06
I am making a game where the player needs to use a detection instrument. I want to know how to make a script that would make the "detector" reading on the hud go up and down depending on where the player is in relationship to the object.

\Thanks!
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 6th Jun 2011 04:08
You could make a script for the object that checked the PLRDISTWITHIN condition and displayed a series of HUDs depending on the distance. If you use image HUDs (like a graphic representation of a meter) you need to make a HUD for each distance you wanted to represent. If you want to use plain text HUD, you could use the FPGCRAWTEXT command.

That's the theory part of it.

The object would of course have to be dynamic and probably always active. It would look something like this:



Brian.

Pirate Myke
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, Ca
Posted: 8th Jun 2011 06:22 Edited at: 8th Jun 2011 20:01
Should not have been here!! Sorry

Nothing but coffee in my veins 'Insomnia is Coming'

Login to post a reply

Server time is: 2024-11-24 08:26:46
Your offset time is: 2024-11-24 08:26:46