Sciolyte

Spotlight Example

Nov 15th, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local pl = ents.get_local_player()
  2. local entLight = ents.create("env_light_spot")
  3. if(entLight ~= nil) then
  4.     entLight:SetKeyValue("spawnflags","1024")
  5.     entLight:SetKeyValue("distance","512")
  6.     entLight:SetKeyValue("lightcolor","255 183 34 255")
  7.     entLight:SetKeyValue("outercutoff","45")
  8.     entLight:SetKeyValue("innercutoff","35")
  9.     entLight:SetParent(pl,FPARENT_SNAP_TO_ORIGIN | FPARENT_UPDATE_EACH_FRAME)
  10.     entLight:Spawn()
  11. end
Advertisement
Add Comment
Please, Sign In to add comment