Est SetEntityColor

From EventScripts Community Encyclopedia
Syntax: est_SetEntityColor <Entity Index> <red> <green> <blue> <alpha>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

Sets the colors of Entity Index

Parameters

  • Entity Index - See Est_PlayerSelection for player selection help
  • red - Red(0-255)
  • green - Green(0-255)
  • blue - Blue(0-255)
  • alpha - alpha-transparent(0-255)

Example


event player_spawn
{
  // The value of server_var(entindex) needs to be a Entity
  es_xset entindex 0
  es est_getindex entindex event_var(userid)
  // Changes the color and alpha levels
  es est_SetEntityColor server_var(entindex) 16 128 150 255
}

Notes

  • None

See Also

blog comments powered by Disqus