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.@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.@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 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 2
# This E2 changes your material #
owner():setMaterial("phoenix_storms/chrome")
@name Tutorial E2 2
# This E2 changes your material #
interval(20)
if(owner():lastSaid()=="!chrome"){owner():setMaterial("phoenix_storms/chrome")}
if(owner():lastSaid()=="!blkchrome"){owner():setMaterial("phoenix_storms/black_chrome")}
If I had U$S2000, I'd buy an awesome computer.
If (I had U$S==2000) {Can buy an awesome computer}
if(Money==2000){AwesomePC==Affordable}
@name Tutorial E2 2
# This E2 changes your material #
interval(20)
if(owner():lastSaid()=="!chrome"){owner():setMaterial("phoenix_storms/chrome")}
if(owner():lastSaid()=="!blkchrome"){owner():setMaterial("phoenix_storms/black_chrome")}
@name Tutorial E2 2
# This E2 changes your material #
interval(20)
LS = owner():lastSaid()
if(LS=="!chrome"){owner():setMaterial("phoenix_storms/chrome")}
if(LS=="!blkchrome"){owner():setMaterial("phoenix_storms/black_chrome")}
nice stuffz here ::)Thank you.
this is wtf fail, for peeps who dont know go here, but me, stick to E2 itself :)Nah, its a win. Making use of the Programming Section.
Nah, its a win. Making use of the Programming Section.i am and have been lol, im currently making soemthing for random since like, 2 dayss ago, gunna go strait in here
hey does anyone know how to make a e2 mine when a button is pressed it blows upUse Dynamite
I will go over commands later Frank...
Always try to make your code as clean as possibleExample:
@name Tutorial E2 9
@outputs V:vector
interval(10)
Me=owner()
Prop=entity():isWeldedTo()
if(owner()) {Prop:applyForce(($V*10+V)*Prop:mass()) V=Me:pos()+vec(0,0,150) - Prop:pos()}
if(owner():keyAttack1()) {Prop:applyForce(($V*10+V)*Prop:mass()) V=Me:pos()+(owner():eye()*-100000) - Prop:pos()}
To:@name Tutorial E2 9
@outputs V:vector
interval(10)
Me=owner()
Prop=entity():isWeldedTo()
if(owner()) {
Prop:applyForce(($V*10+V)*Prop:mass())
V=Me:pos()+vec(0,0,150) - Prop:pos()
}
if(owner():keyAttack1()) {
Prop:applyForce(($V*10+V)*Prop:mass())
V=Me:pos()+(owner():eye()*-100000) - Prop:pos()
}
Example:Code: [Select]@name Tutorial E2 9
To:
@outputs V:vector
interval(10)
Me=owner()
Prop=entity():isWeldedTo()
if(owner()) {Prop:applyForce(($V*10+V)*Prop:mass()) V=Me:pos()+vec(0,0,150) - Prop:pos()}
if(owner():keyAttack1()) {Prop:applyForce(($V*10+V)*Prop:mass()) V=Me:pos()+(owner():eye()*-100000) - Prop:pos()}Code: [Select]@name Tutorial E2 9
@outputs V:vector
interval(10)
Me=owner()
Prop=entity():isWeldedTo()
if(owner()) {
Prop:applyForce(($V*10+V)*Prop:mass())
V=Me:pos()+vec(0,0,150) - Prop:pos()
}
if(owner():keyAttack1()) {
Prop:applyForce(($V*10+V)*Prop:mass())
V=Me:pos()+(owner():eye()*-100000) - Prop:pos()
}
BawmpI lost all my E2 when I got that virus. I will continue when I move on toooo... What do you want to learn?
Will you ever continue this Krasher?
I lost all my E2 when I got that virus. I will continue when I move on toooo... What do you want to learn?That one Lua Virus there or a different one?
That one Lua Virus there or a different one?Floating balls?
And I dunno, knowing how to make these walking Ragdolls OR how to make these floating balls following your command (bad description, inorite) would be awesome.
Floating balls?Yes. They make Zombie Sounds, and when you for example type !attack, they attack a close player. Really don't know how to describe it lol.
Yes. They make Zombie Sounds, and when you for example type !attack, they attack a close player. Really don't know how to describe it lol.k, loading gmod to show everyone Bone Entities on ragdolls.
But the walking Ragdoll would be far more interesting. I would love you forever if you would do that one <3
What your talking about is BALLS OF STEEL. I hate that dam e2. Its a good e2, but abused so much its not even funny.Bone entites are not BoS.
Bone entites are not BoS.
@name Array Test
@persist [Array Players]:array Total
runOnChat(1)
LastS=owner():lastSaid():lower()
Total=findByClass("player")
Players=findToArray()
for(I=1,Players:count()){
Array[I,string]=Players[I,entity]:name()
if(LastS=="/run"){
for(K=1, Array:count()){
print(Array[K,string])
}
}
}
@name Array Test
@persist Players:array
runOnChat(1)
LS = owner():lastSaid():explode(" ")
Clk = chatClk(owner())
if(Clk & LS:string(1) == "/r")
{
findByClass("player")
Players = findToArray()
}
if(Clk & LS:string(1) == "/i")
{
print(Players[LS:string(2):toNumber(),entity]:name())
}