AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_lights timing (https://forums.alliedmods.net/showthread.php?t=86450)

fysiks 02-25-2009 19:06

set_lights timing
 
What is the timing of the set_lights function if I pass a nonconstant value (e.g. "abcdefghijklmnop").

Code:


#define fm_set_lights(%1) engfunc(EngFunc_LightStyle, 0, %1)

Also, would "setting" the timing using a repeating task to cycle through different light settings be bad/inefficient/pointless or not even work right?

Dr.G 02-25-2009 19:14

Re: set_lights timing
 
checkout how tatsu used set_light in this plugin http://www.dodplugins.net/forums/showthread.php?t=478 might help ya

fysiks 02-25-2009 19:51

Re: set_lights timing
 
Quote:

Originally Posted by Dr.G (Post 769112)
checkout how tatsu used set_light in this plugin http://www.dodplugins.net/forums/showthread.php?t=478 might help ya

That tells me how I can use it. That does not tell me how the function works.

P.S. that plugin is the starting point/motivation of the plugin I am working on :).

Exolent[jNr] 02-25-2009 22:09

Re: set_lights timing
 
I would say that it changes every 0.1 - 0.25 seconds

Dr.G 02-26-2009 10:19

Re: set_lights timing
 
twilight suzuka made weather plugin that works for dod aswell thats around here somewhere check that out maybe

MeRcyLeZZ 02-26-2009 15:26

Re: set_lights timing
 
I'm not 100% sure, but I think it depends on client's fps or something... definitely not a constant timing.


All times are GMT -4. The time now is 02:25.

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