AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Rendercolor (https://forums.alliedmods.net/showthread.php?t=25224)

Stephen 03-10-2006 10:07

Rendercolor
 
Hi.

How would i make it so i can choose the rendercolor of an created Entity ?

entity_set_vector(id,EV_VEC_rendercolor, ???? )

I tried that but somehow i got errors when compiling so i removed it again.

I wanna be able to create Red , Green, Blue colors.
_________

This is what i have now. But i dont get an effect once im trying to change the colors in the console when spawning the entity

read_argv(7, rencol, 33)
new Float:RenderColor[3]
RenderColor[0] = float(str_to_num(r))
RenderColor[1] = float(str_to_num(g))
RenderColor[2] = float(str_to_num(b))

Kraugh 03-10-2006 20:04

rendercolor does not really do anything by itself, it should be accompanied by a render mode or render effects.

for information about rendering properties, check out this article at the VERC: http://collective.valve-erc.com/inde...87068-71355600

to apply rendering properties to a non-player entity, use set_rendering from engine_stocks.inc: http://www.amxmodx.org/funcwiki.php?go=func&id=405

also, a suggested alternative to float(str_to_num(variable)) would be, simply, floatstr(variable).


All times are GMT -4. The time now is 20:26.

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