finish + hurt+invisible user


(nikita) #1

i made a trigger_hurt 2 a flame witch is controlled by a switch that turn the trigger_hurt

but how am i turning the flame itself like the trigger_hurt into invisible when switch activated


(EB) #2

Make them into script movers and setstate the peices and parts accordingly.
There are a few other ways…try that one though.

You will have an orange light on the walls even when the flame is not visible.
To have a flame that does not show off light when it is not visible use this shader;


textures/sfx/ebwilsflame1

{
	
	qer_editorimage textures/sfx/flame1.tga

	cull none

	nofog
	
	surfaceparm nomarks

	surfaceparm nonsolid
		
	surfaceparm trans

	{
	
	animMap 10 textures/sfx/flame1.tga textures/sfx/flame2.tga textures/sfx/flame3.tga textures/sfx/flame4.tga textures/sfx/flame5.tga textures/sfx/flame6.tga textures/sfx/flame7.tga textures/sfx/flame8.tga
	
	blendFunc GL_ONE GL_ONE
		
	rgbGen wave inverseSawtooth 0 1 0 10

	}
	
	{
		
	animMap 10 textures/sfx/flame2.tga textures/sfx/flame3.tga textures/sfx/flame4.tga textures/sfx/flame5.tga textures/sfx/flame6.tga textures/sfx/flame7.tga textures/sfx/flame8.tga textures/sfx/flame1.tga
		
	blendFunc GL_ONE GL_ONE
		
	rgbGen wave sawtooth 0 1 0 10
	
	}

	{
		
	map textures/sfx/flameball.tga
		
	blendFunc GL_ONE GL_ONE
	
	rgbGen wave sin .6 .2 0 .6

	}
}


(nikita) #3

whats the script texture+ how do i make it 2 give a massage when switchedon+off

whats the script 4 func_invisible_user?