This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

]CS:GO] How to send input to "light" entities?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
andrew.xd23
Junior Member
Join Date: Feb 2016
Old 02-04-2016 , 17:57   ]CS:GO] How to send input to "light" entities?
Reply With Quote #1

How can I send inputs to: "CBaseEntity - light_spot", "CBaseEntity - light" or "CBaseEntity - light_directional"?

I couldn't find much information on this but I tried doing this with FindEntityByClassname and after that with AcceptEntityInput but no success.

Here's what I tried:

PHP Code:
while ((ent FindEntityByClassname(ent"light_spot")) != -1)
    {
        
AcceptEntityInput(ent"Kill");
    } 
And I tried with every lighting entity that exists in source and still it can't find anything.
andrew.xd23 is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 02-04-2016 , 18:08   Re: ]CS:GO] How to send input to "light" entities?
Reply With Quote #2

Only lights that have been named in the map can be turned off or on via input. Dynamics will work also.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 02-04-2016 , 21:26   Re: ]CS:GO] How to send input to "light" entities?
Reply With Quote #3

Heads up : Killing light entities in CS:GO fucks up textures

Last edited by headline; 02-11-2016 at 16:41.
headline is offline
andrew.xd23
Junior Member
Join Date: Feb 2016
Old 02-05-2016 , 04:39   Re: ]CS:GO] How to send input to "light" entities?
Reply With Quote #4

Oh ok thanks
andrew.xd23 is offline
Reply



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 03:05.


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