Frictional Games Forum (read-only)

Full Version: How to put a de/activable picture in-game ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello !

I created a little "creepy-face" and i want to put it in-game and have the possibility to disable or enable this "creepy-face".

Already tested the "decal method" but i can't deactivate it Undecided

Thanks in advance if you can help me !
Create a custom lamp.
Make the mesh invisble.
Apply the picture as a billboard.
????????????????
Profit

^.^
make it into an entity?
-Put your image with a billboard.
-Attach it to a small point light named rabbit.
-turn on/off rabbit whenever you want to show/hide your billboard.
-???.
-profit.
(11-16-2014, 02:52 AM)Daemian Wrote: [ -> ]-Put your image with a billboard.
-Attach it to a small point light named rabbit.
-turn on/off rabbit whenever you want to show/hide your billboard.
-???.
-profit.

Then you should also say HOW to deactivate is My sexy friend!
This is the function to DISABLE the Billboard and aso the light AND picture!
PHP Code:
SetLightVisible("YOURLIGHTFROMEDITORHERE"false); 
Thanks for answering everyone !

Going to test Daemian first :

- So i create a billboard in the Level Editor and i choose my picture in "Material File" ?
- How do i attach the point light to the billboard ? CTRL + J ?


Oh okay i managed to attach it to the lamp and it's working ! But my picture is like "transparent"... Some way to fix this ? :/
I think in the LE you can't see it when it's attached to a light. But in-game it's visible.
You gotta set the light off at OnStart() with SetLightVisible.
Then you turn it on/off whenever you want.
Oh okay ! 'going to test it !