Raised This Month: $ Target: $400
 0% 

Rendercolor


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stephen
Senior Member
Join Date: Aug 2004
Old 03-10-2006 , 10:07   Rendercolor
Reply With Quote #1

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))
__________________
www.corona-bytes.net (ECX = ESF Addon)
Stephen is offline
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 03-10-2006 , 20:04  
Reply With Quote #2

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).
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
Reply


Thread Tools
Display Modes

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 20:26.


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