Raised This Month: $ Target: $400
 0% 

Giving Spawned Entity RGB Color


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Stephen
Senior Member
Join Date: Aug 2004
Old 03-23-2006 , 05:46  
Reply With Quote #6

hmm i tried that but i didnt had any effect of changeing the color.

It did compile without errors or Warnings.
-
Code:
public function(id) {      new  red[12], green[12], blue[12]            read_argv(1, red, 11);      read_argv(2, green, 11);      read_argv(3, blue, 11);      //creating the Entity is also here done      new Float:colorvec[3];     colorvec[0] = Float:floatstr(red)     colorvec[1] = Float:floatstr(green)     colorvec[2] = Float:floatstr(blue)       entity_set_vector(avatar[id], EV_VEC_rendercolor, colorvec )      return PLUGIN_HANDLED }
__________________
www.corona-bytes.net (ECX = ESF Addon)
Stephen is offline
 



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 16:35.


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