Raised This Month: $51 Target: $400
 12% 

Tree


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
strangeguy
Senior Member
Join Date: Mar 2019
Old 12-08-2021 , 15:17   Tree
Reply With Quote #1

Hello everyone!

I gave some light to my entity tree, I added "EF_LIGHT". Is it possible to move/hide this white light thing. Maybe give it under the ground? Then players will not see this annoying light thing.

Code:
CreateTree( const Float:vOrigin[ 3 ] ) {
	new iEntity = create_entity( "info_target" );
	
	if( !iEntity )
		return 0;
	
	entity_set_string( iEntity, EV_SZ_classname, "env_tree" );
	entity_set_int( iEntity, EV_INT_solid, SOLID_NOT );
	entity_set_int( iEntity, EV_INT_movetype, MOVETYPE_NONE );
	entity_set_int( iEntity, EV_INT_effects, EF_LIGHT)
	
	entity_set_size( iEntity, Float:{ -1.0, -1.0, -1.0 }, Float:{ 1.0, 1.0, 36.0 } );
	entity_set_origin( iEntity, vOrigin );
	entity_set_model( iEntity, MODEL );
	
	drop_to_floor( iEntity );
	
	return iEntity;
}
Greetings!
strangeguy is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-09-2021 , 20:52   Re: Tree
Reply With Quote #2

Quote:
Originally Posted by strangeguy View Post
Hello everyone!

I gave some light to my entity tree, I added "EF_LIGHT". Is it possible to move/hide this white light thing. Maybe give it under the ground? Then players will not see this annoying light thing.
Just remove the line instead of spend time hiding it underground. Learn env_render. Can do a lot more.
__________________
DJEarthQuake is offline
strangeguy
Senior Member
Join Date: Mar 2019
Old 12-10-2021 , 02:11   Re: Tree
Reply With Quote #3

Quote:
Originally Posted by DJEarthQuake View Post
Just remove the line instead of spend time hiding it underground. Learn env_render. Can do a lot more.
That's right...
strangeguy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode