Page 1 of 2
hide/show a corona
Posted: Mon Feb 02, 2004 11:31 pm
by wacko
i want the script to 1st hide and later on show a static/corona.
i gave it a targetname ringcorona and in the script i put a $ringcorona hide but just get a NIL listener error. Is there a way, or even to change the scale by scripting?
Posted: Tue Feb 03, 2004 12:15 am
by wacko
hey krane! where are u gone? i just answered your post and when I came back...
i tried this before...
made a script_model with targetname and
model / static/corona_orange.tik this one went off to coordinates -19999... anything. Now I tried model / corona_orange.tik which stays where it belongs, but isn't shown ingame. Shouldn't it be visible by default or do i have to do something in the script to SHOW it?
Re: hide/show a corona
Posted: Tue Feb 03, 2004 12:59 am
by omniscient
[quote="Wacko"]a NIL listener error.[quote]
wtf is that?
try remove instead of hide, i dunno if it will work, but its worht a shot.
Re: hide/show a corona
Posted: Tue Feb 03, 2004 1:11 am
by wacko
omniscient wrote:Wacko wrote:a NIL listener error.
wtf is that?
try remove instead of hide, i dunno if it will work, but its worht a shot.
this is a console error saying that there is no entity that can execute the command.
about the hide/remove: in fact I can't do anything with a corona by script: I tried to bind it to another (moving) script_object, but it doesn't follow. I'm sure that a script_model would be the solution, but model/corona.tik doesn't work, and model / static/corona_orange.tik does qalmost crash my computer

Posted: Tue Feb 03, 2004 3:10 am
by Axion
I think I have a solution for your problem. Try making a script-origin and giving it these values-
model static/corona_reg.tik
targetname corona
And then in your script if you use the command $corona hide, it should work. I think.

Posted: Tue Feb 03, 2004 3:21 am
by omniscient
could someone briefly explain to me what a corona is. is it just pulsing light?
Posted: Tue Feb 03, 2004 3:50 am
by Axion
A corona is the faintly colored luminous ring that appears around a light. They are usually only visible through a thin haze, and are caused by a diffraction of light from suspended mater.
In Layman's terms, a corona is the other glow that you see surrounding a light when it's lit.
Posted: Tue Feb 03, 2004 4:20 am
by M&M
how can u get different colors of these coronas,there is only red in mohradient
Posted: Tue Feb 03, 2004 4:24 am
by Axion
No, there are more. Under static ==> corona, you also have choices of orange, regular, and utility versions in addition to the red one found under the fx menu.
I'm guessing that you if you tinker around with the .tik file, you could make a version with any color that you choose.
Posted: Tue Feb 03, 2004 8:51 am
by wacko
Axion wrote:...Try making a script-origin...
Thanks, Axion!! A script_origin is MUCH better than a script_object, especially because it's working now!!! Thanks, m8

Posted: Tue Feb 03, 2004 9:09 am
by Axion
I'm just happy that I'm actually dispensing good advice in the scripting forum.

Posted: Tue Feb 03, 2004 9:36 am
by bdbodger
This is what I do and the blink thread just hides and shows it
local.mark = spawn script_model
local.mark model "fx/corona_red.tik"
local.mark scale 50
local.mark.origin = self.origin
local.mark thread blink
Posted: Tue Feb 03, 2004 2:33 pm
by Krane
Sorry, m8
My tip was to make a script model, but I tested myself and realize it was not working, so I deleted my reply...
Can we use a script origin with model key? Cool
Living and learning...
Posted: Tue Feb 03, 2004 3:57 pm
by wacko
Krane wrote:Sorry, m8
My tip was to make a script model, but I tested myself and realize it was not working, so I deleted my reply...
no prob, i just was a bit confused
Krane wrote:Can we use a script origin with model key? Cool
Living and learning...
yeah, ain't we all the time

Posted: Tue Feb 03, 2004 5:13 pm
by jv_map
You can give any entity a model key, like even a func_rotatingdoor if you'd want
