AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Create Wall and give it a color (https://forums.alliedmods.net/showthread.php?t=233221)

mottzi 01-11-2014 13:25

Create Wall and give it a color
 
Hey guys.

I have never really worked with entities in cs, so I wondered if it was possible to spawn a entity with a dynamic length and then use sth like set_rendering to color it red.

Is there an elegant way, or do I really have to find a "wall"-model which would limit me to only one lenght?


I appreciate your help

SpeeDeeR 01-11-2014 14:22

Re: Create Wall and give it a color
 
If dynamic lenght(size) means hitbox, yes you can via mins and maxs but since you can't scale the model a dynamic approach (assuming you mean this) is out of the question.

mottzi 01-11-2014 14:52

Re: Create Wall and give it a color
 
So there is no way an entity has a visual appearance (using set_rendering) without giving it a model?

SpeeDeeR 01-11-2014 15:26

Re: Create Wall and give it a color
 
Since set_rendering renders the model of the entity and when there is nothing to render it seems like a server crash to me.


All times are GMT -4. The time now is 10:12.

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