UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Dynamic. Lights, etc...

broken avatar :(
Created 11 years ago
by Elzy
0 Members and 1 Guest are viewing this topic.
2,200 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 8 August 2015
Last active: 9 years ago
Posts
158
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Misty
Signature
Retaken CANCELED!
----
Misty
Map Progress:
10%
×
Elzy's Groups
Elzy's Contact & Social LinksElzzy
So i have this little problem with my zone_three (i don't know if it does it with my other zones but lets just say zone_three for right now) video links below. but when ever they try to hit me or go towards me they just walk right pass me and look like they are walking on ice >_>
! No longer available
my second problem is why cant i have more then '1' dynamic light? is there a limit or something cause when i try to add 2 dynamic lights from RDV's dynamic light prefab the fx don't work
! No longer available
[and a little btw that warning script runtime thing i got for the second video is a load of bullshit to so ignore that, cause i have the UGX Modtools patch installed & risers in my start_zone + zone_two]
Last Edit: November 07, 2015, 10:28:39 am by Elzy
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: esMadrid
Date Registered: 27 March 2015
Last active: 5 years ago
Posts
371
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
JIGGLYPUFF used SING! YOU fell asleep!
Signature
×
Soy-Yo's Groups
Soy-Yo's Contact & Social LinksSoy-yoElCerdoRey
For the first one, maybe they're looking for a window to open it. If they spawn in risers, don't have the script_noteworthy - find_flesh KVP. But I'm not sure.

For the second one, if you're using RDV's tutorial, you can't have more than one without editing the script a little bit.
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 4 months ago
Posts
1,863
Respect
Forum Rank
Zombie Destroyer
Primary Group
Mapper
My Groups
More
Personal Quote
ok
Signature
Aye mate you don't know me so y don't you shut tf up ok buddy :)

×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
1st Issue: Possibly bad pathing.

2nd Issue: RDV's tutorial uses GetEnt, so it can be done on one entity, not sure if you could change some stuff and use GetEntArray so it grabs multiple lights and lamps. :P
Marked as best answer by Elzy 11 years ago
broken avatar :(
×
broken avatar :(
Location: esMadrid
Date Registered: 27 March 2015
Last active: 5 years ago
Posts
371
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
JIGGLYPUFF used SING! YOU fell asleep!
×
Soy-Yo's Groups
Soy-Yo's Contact & Social LinksSoy-yoElCerdoRey
1st Issue: Possibly bad pathing.

2nd Issue: RDV's tutorial uses GetEnt, so it can be done on one entity, not sure if you could change some stuff and use GetEntArray so it grabs multiple lights and lamps. :P
Code Snippet
Plaintext
dynamic_light()
{
lamp = getentarray("dyn_lamp","script_noteworthy");
light = getentarray("dyn_light","targetname");

if(!isdefined(light) || light.size<1)
return;
    array_thread(lamp,::dynamic_light_main,light);

}

dynamic_light_main(lights)
{
    light = undefined;
    for(i=0;i<lights.size;i++)
    {
        if(distance(self.origin,lights[i].origin)<30)
            light = lights[i];
    }
    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));
}
}

Maybe this works. And maybe you need to change the distance to make it work.
It's RDV's script with some edits.
Last Edit: November 07, 2015, 11:21:20 am by Soy-Yo
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 8 August 2015
Last active: 9 years ago
Posts
158
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Misty
×
Elzy's Groups
Elzy's Contact & Social LinksElzzy
thanks for the script, i'll try to figure out pathing
i'll take a look =|
Code Snippet
Plaintext
dynamic_light()
{
lamp = getentarray("dyn_lamp","script_noteworthy");
light = getentarray("dyn_light","targetname");

if(!isdefined(light) || light.size<1)
return;
    array_thread(lamp,::dynamic_light_main,light);

}

dynamic_light_main(lights)
{
    light = undefined;
    for(i=0;i<lights.size;i++)
    {
        if(distance(self.origin,lights[i].origin)<30)
            light = lights[i];
    }
    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));
}
}

Maybe this works. And maybe you need to change the distance to make it work.
It's RDV's script with some edits.

 
Loading ...