Sadly, there is no direct command to vary the level of ghosting on an object. However, there is a work around that can create this effect. You may or may not want to do it, but this is what you have to do:
Do this stuff in the setup:
-Turn the ambient light off
-Create a light source, it can be a directional or a point light, whatever suits your program better
-Ghost your object
Do this in your program to fade your object
-Set the level of fading by using the command 'fade object objectnum,fadelevel'. This will cause your object to be affected by the light in varied amounts, causing it to appear transparent at different levels. Use lower numbers to make it more transparent, higher levels to make it more solid.
The problem with this method is that you can't have ambient light, so the light is not coming from the same source all the time. Your object may appear a little bit brighter or more transparent, depending on what angle it is facing, but at least it works. This is how I fade the special effects in my game.
Hope it helps
Xander Moser - Bolt Software - Firewall
