ok im not the best of coders sooo a lil more help would be nice after
looking at what botman wrote and reading through some code about the
GetClassPtr() function i was hoping this would work ( to test i am putting
the code in the client command function )
CBaseEntity *pLight = NULL;
You need to know which light it is you want to turn on and off.
In your code, you are trying to toggle a light you reference with CLight, but thats
an
unidentified variable.
Use the GET_ENTITY_BY_STRING or similar functions to get a pointer to the entity.
-av
Rob z wrote:
ok im not the
or just include effects.h (or lights.h, I'm not sure and I haven't
HL SDK on this computer).
Cortex
You need to know which light it is you want to turn on and off.
In your code, you are trying to toggle a light you reference with
CLight, but thats an
unidentified variable.
Use the
I need to set up some code to toggle a light entity on and off i would think
this would be done by calling CLight :: Use but i cant figure out how to use
this function i was wondering if someone could tell me if this is what i
need to use and how to call it propperly
EVNRIO
4 matches
Mail list logo