Corona that fade in/out

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Marlboro88
Private
Posts: 6
Joined: Wed Apr 04, 2007 9:41 pm

Corona that fade in/out

Post by Marlboro88 »

Hi guys,

look:

Code: Select all


spawn script_model model "fx/corona_red.tik" "targetname" "blinky"
$blinky.origin = ( 5390.76 -7459.20 3042.76 )
$blinky scale .7
$blinky notsolid
while (1)
{
$blinky hide
wait 2
$blinky show
wait 2
}
end
this works good but i'd like to make the bling hide and show go fade, is it possible to let the blinky show like 20% then 40% etc. or is there a better way to let it fade? thanks alot
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

An alphaGen sin in the shader might do what you want.
Image
User avatar
Marlboro88
Private
Posts: 6
Joined: Wed Apr 04, 2007 9:41 pm

Post by Marlboro88 »

i never heard of that :oops: if it's a shader-maker sounds good, but, i want it to be server-side (like Elgan's Admin pro message Fade).
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Oh in that case forget about the alphaGen, it will not work server side.. not sure if there's any other way of making the thing fade, though :?

You could try scaling it.. :idea:
Image
User avatar
Marlboro88
Private
Posts: 6
Joined: Wed Apr 04, 2007 9:41 pm

Post by Marlboro88 »

yes i think i'll try that ty for help
Image
Post Reply