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 / trouble with glowing script - pls help

Author
Message
Panther1965
15
Years of Service
User Offline
Joined: 10th Nov 2009
Location:
Posted: 19th Nov 2009 05:06
Hello All.

I am trying to write a script so that a key will float and rotate with a glow on the floor, as in ammoglow,armourglow scripts etc.

However, with my script I only get the object floating and spinning. No glow.

Below is the two code snippets

GLOWING AMMO works.


Here is the code for picking up a key, it won't glow.



Any help as to what I am doing wrong is greatly appreciated.


Thank you in advance

Panther1965
Nbt
15
Years of Service
User Offline
Joined: 11th Oct 2009
Location: Behind you!!
Posted: 19th Nov 2009 17:56
Yeah I did the same a while back to make my keys glow, but they just spin and no glow decal for some reason

So I just created little illumination maps for the keys and set "illuminationent.fx" as effect, so the actual keys glow.

I only use this for fun and have no interest in making commercial games ^_^
Panther1965
15
Years of Service
User Offline
Joined: 10th Nov 2009
Location:
Posted: 20th Nov 2009 04:36
@ Nbt Thanks for the idea.
Could you tell me how to make illumination maps for the keys ( or other model) I'm not really sure what you mean.

Thank you once again


Panther1965
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Nov 2009 23:33
Quote: "Could you tell me how to make illumination maps for the keys ( or other model) I'm not really sure what you mean."


Take the model's texture, open it up in an Image editing program. Color the parts that should "glow" with solid white, and the parts that should not glow with solid black. Color "semi-glowy" parts with a gray color. In the end your texture should look like a black background with white spots. Now, save it as "yourtexturename_I", be sure to include that "_I" at the end, so FPSC knows that it's the illumination map.

After that, just give the entity the "illuminationent.fx" shader for it's "Effect" field.


The one and only,


Panther1965
15
Years of Service
User Offline
Joined: 10th Nov 2009
Location:
Posted: 23rd Nov 2009 05:16
@ Plystire,

Thank you for the explanation.

If any one has or finds a fix to the original problem, I would love to hear it.

Thank you in advance

Panther1965

Login to post a reply

Server time is: 2024-11-25 05:39:33
Your offset time is: 2024-11-25 05:39:33