

Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!"script_noteworthy" "dyn_lamp"
"maxmove" "500"
"maxturn" "360"
"targetname" "dyn_light"
"exponent" "1"
"fov_inner" "40"
"fov_outer" "60"
"spawnflags" "22"
"def" "light_point_linear"
"radius" "400"
"_color" "1 1 1"
"intensity" "2"
level._effect["chair_light_fx"] = loadfx("env/light/fx_glow_hanginglamp");
thread dynamic_light();
dynamic_light()
{
lamp = getent("dyn_lamp","script_noteworthy");
light = getent("dyn_light","targetname");
if(!isdefined(light))
return;
light linkto(lamp);
fx = spawn("script_model", lamp.origin);
fx.angles = (90,0,0);
fx setmodel("tag_origin");
fx linkto(lamp);
playfxontag(level._effect["chair_light_fx"],fx,"tag_origin");
while(1)
{
lamp physicslaunch ( lamp.origin, (randomintrange(-20,20),randomintrange(-20,20),randomintrange(-20,20)) );
wait(randomfloatrange(10,15));
}
}
fx,fx,env/light/fx_glow_hanginglamp
level._effect["chair_light_fx"] = loadfx("env/light/fx_glow_hanginglamp");
lamps = getentarray("dyn_lamp","script_noteworthy");
array_thread(lamps,::dynamic_light);
dynamic_light()
{
light = get_array_of_closest(self.origin,getEntArray("dyn_light","targetname"))[0];
if(!isdefined(light))
return;
light linkto(self);
fx = spawn("script_model", self.origin);
fx.angles = (90,0,0);
fx setmodel("tag_origin");
fx linkto(self);
playfxontag(level._effect["chair_light_fx"],fx,"tag_origin");
while(1)
{
self physicslaunch ( self.origin, (randomintrange(-20,20),randomintrange(-20,20),randomintrange(-20,20)) );
wait(randomfloatrange(10,15));
}
}
fx,fx,env/light/fx_glow_hanginglamp
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom mapping in the UGX-Mods community. |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
fx, fx,env/light/fx_glow_hanginglamp
fx,fx,env/light/fx_glow_hanginglamp
thank you so fekin much dude, iv been waiting like a whole year to find out how this is done!
Hi guys,
Can I placed more dynamic light? I mean in other rooms, corridors etc. How?
I tried to copy (light, info_null, scipting_model) but lost the glow effect and rope dancing animation.
Ill update the op soon with script for multiple lights. So stay tuned!
Double Post Merge: December 26, 2015, 09:55:06 am
Updated OP!