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

How would i make a spinning light

broken avatar :(
Created 7 years ago
by ect0
0 Members and 1 Guest are viewing this topic.
1,398 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 3 September 2016
Last active: 6 years ago
Posts
25
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ect0's Groups
ect0's Contact & Social Links
So i want to put the usual blue light that spins on top of the police car but how would i do that? someone help!
broken avatar :(
×
broken avatar :(
Location: nzChristchurch
Date Registered: 8 June 2014
Last active: 6 years ago
Posts
77
Respect
Forum Rank
Rotting Walker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Can I do this?
Signature
×
IDontEvenKnow's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Make it scriptable, give it a target name of police, then just do something like

Code Snippet
Plaintext
Light = getent("targetname","pig"); //lol
Light.angles = x.x.x;

is my probable wrong code.
broken avatar :(
×
broken avatar :(
Location: caCanada, Eh
Date Registered: 24 November 2016
Last active: 6 years ago
Posts
85
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
MegaMech43's Groups
MegaMech43's Contact & Social Linksmegamechmegamech.net
Make it scriptable, give it a target name of police, then just do something like

Code Snippet
Plaintext
Light = getent("targetname","pig"); //lol
Light.angles = x.x.x;

is my probable wrong code.

Code Snippet
Plaintext
light = getent("targetname","light_a");

for (i = 0, i<a_number, i++) { //Replace with while(1) { for infinite loop
light.angles += (x, z, y); //(I think it's x z y. Wish it were x y z but the order is different in radiant. sucks to be me)
wait(0.1) //I think the min wait time is around 0.5... 0.1 for me didn't seem to work with a different project.
}
I think this is more correct, also usually variable names aren't capitalized only function names, but this varies greatly language to language.
Last Edit: February 02, 2017, 12:08:40 am by MegaMech43

 
Loading ...