Giving Spawned Entity RGB Color
Hi.
^^ Well to get straight away to the point. There are different rendermodes/renderfx/etc.... where cna be done when spawned an Entity. But HOW to i change the rendercolor of it ? when the rendermode isnt additive/or alpha(where you dont see the balck/blue fields ^^) |
This is what i have
Code:
But im getting 1 error and 1 Warning on the last line. Warning 213: tag mismatch Error 035: argument type mismatch (argument 3) |
Code:
index = your entity fx Code:
kRenderFxNone = 0, render Code:
kRenderNormal = 0, /* src */ |
Erm No.
Im doing all these things with engine.inc i only need to have the entity_set_vector(avatar[id], EV_VEC_rendercolor, Float:floatstr(colorvec) ); fixed- |
floatstr accepts a string parameter, not an array of floats. Just pass colorvec like so:
Code:
|
hmm i tried that but i didnt had any effect of changeing the color.
It did compile without errors or Warnings. - Code:
|
I believe you have to change the rendermode as well for it to take effect, no? Someone please correct me if I'm mistaken.
|
Hmm i think you are right about the rendermode, but what for an rendermode has it to be ?
cause i tried them all i think. |
| All times are GMT -4. The time now is 16:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.