1066
Programming / Re: Learning Simple E2 with Kräsher!
« on: April 10, 2010, 10:52:09 PM »nice stuffz hereThank you.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
nice stuffz hereThank you.
@name Tutorial E2 5
@persist Timer
# This E2 makes a cube holo that spins :D #
interval(0.5)
Me = owner()
Chip = entity()
T = Timer
Timer = Timer+1*1
if(first()) {holoCreate(1)}
holoModel(1,"cube")
holoAng(1,ang(T,T,T))
holoPos(1,Chip:pos()+vec(0,0,45))
holoColor(1,vec(255,200,0))
holoScale(1,vec(1,1,1))
holoColor(1,vec(255,200,0))
To:holoColor(1,vec(random(255),random(255),random(255)))
This sets the holo to rave light.@name Tutorial E2 3
# This E2 puts a trail on your player. #
owner():setTrails(3,50,5,"trails/smoke",vec(255,0,0),200)
@name Tutorial E2 2
# This E2 changes your material #
owner():setMaterial("phoenix_storms/chrome")
owner():setMaterial("phoenix_storms/chrome")
owner is the player who spawned the E2, in other words. It's you.interval(10)
This makes the E2 repeat itself every 10 milliseconds or so. (I am not sure what time increment it is.)owner():setColor(random(255),random(255),random(255))
The function 'owner' means that whatever the code after it says, it happens to the player who spawned it. The random(255) means it is randomlly picking a color from the RGB scale for each R, G, and B. RGB = Red, Green, Blue.@name Prop raver
Prop=entity():isWeldedTo()
interval(10)
Prop:setColor(random(255),random(255),random(255))
Prop=entity():isWeldedTo() is a function that states that the prop that the E2 is attached to should have the code run on it, When the string 'Prop' is stated, followed by a code.i am going to wafflez bitchassI am commin with
GUYS GO http://forum.randomgs.co.cc/index.php/topic,2857.0.htmlThe only reason I didn't make that thread is because it is somewhat... 'illegal'.
IT SHOWS YOU HOW TO DOWNLOAD THINGS FROM garrysmod.org WITHOUT AN ACCOUNT !
don't spamYou and Frank aren't doing a very good job of that either.
>.>we posted at the exact same time xD.
Oh mah gawd!We are going to have a Steam ID lock on it xD.
You posted four (4) times in a row.
U R CRAZY !Yep, I was too tired last night to code an effect xD. But today I will mess around and make like 1123912