Hello There, Guest!   Inicia Sesion Login Registrate Register La Hora Current time: 6-3-26, 10:35 PM
Login
Username/Email:
Password:
Lost Password?
 
Lenny Face Gaming Forums
  • [ ] Portal
  • [ ] Forum
  • [ ] Members
  • [ ] Calendar
  • [ ] Help
  • Steam Group
  • GameTracker
  • Youtube
Donations | Server List | Admin List | Bans | Praise The Overlord!
Home Lenny Face Gaming Forums › Lenny Face Gaming › Server Chat v
« Previous 1 2 3 4 5 6 Next »

E2 Tutorials! [UPDATE 7/19/16]
Threaded Mode
E2 Tutorials! [UPDATE 7/19/16]
« Next Oldest | Next Newest »
Views 10802
Replies 7
Thread Closed 
Users browsing this thread:
maddman01 Offline
Member
*
Beginner (1)
Posts: 45
Threads: 10
Thanks: 2 in 2 posts
Thanks Given: 4
Joined: Jan 2016
Warning Level: 0%
Member
#1
7-18-16, 01:51 AM
Ok so instead of making multiple threads I will be constantly updating this one.
Code:
@name <- Gives the E2 a name
@inputs #<- Gives the E2 an input and for those who don't know an input is something that recieves data
@outputs #<- Give the E2 an output for you to beable to send data to other wire items
@persist #<- Makes a global variable used for multiple statements
@trigger #<- Makes the E2 run through the code when an input of your choice is changed
# <- This is a way to make a comment. Anything in the comment doesn't get ran
#[
This is a multiline comment
so I can put comments on multiple lines
]#

A = 1 #This is a number. This can be used like algebra. A*1(Multiplication)A/1(Division)A^2(Exponents)
B = entity() #This is an entity. The entity() command calls
C = "string1" #This is a string. Its words and sometimes can be numbers with words or just numbers sometimes

if(first()){ #This is one of the 6 statements you can use
   
}

Holograms:

Code:
@name E2 tutorial

holoCreate(1) # Creates a hologram with the number inside the parentheses being the index
holoPos(1, entity():pos()+vec(0,0,50)) #Sets the holograms position to the E2 chips position + 50 units up. vec(X,Y,Z)
holoAng(1, ang(45,45,45)) #Sets the angle of the hologram with ang(Pitch, Yaw, Roll)
holoScale(1, vec(2,2,2)) #Sets the scale of the hologram vec(X,Y,Z)
holoColor(1, vec(255,0,0)) #Sets the color using RGB vec(R0-255,G0-255,B0-255)
holoCreate(2, entity():pos()+vec(0,0,50), vec(2,2,2), ang(45,45,45), vec(255,0,0)) #Creates hologram in order index, position, scale, angle, color
holoCreate(3, entity():pos()+vec(0,0,50), vec(2,2,2), ang(45,45,45)) #Creates hologram in order index, position, scale, angle
holoCreate(4, entity():pos()+vec(0,0,50), vec(2,2,2)) #Creates hologram in order index, position, scale
holoCreate(5, entity():pos()+vec(0,0,50)) #Creates hologram in order index, position
holoDelete(1) #Deletes holo with the given index
What next to cover?
(4 votes total)
EGP's
0 (0%)
In depth on data types (Recommended)
2 (50.0%)
Math lessons (Recommended)
2 (50.0%)

[+]
  •
Find
apekis Offline
Shitpostbot9002
***
Great (84)
Posts: 778
Threads: 24
Thanks: 72 in 61 posts
Thanks Given: 239
Joined: Apr 2016
Warning Level: 0%
gmod_donator_premium
Member
#2
7-18-16, 01:56 AM
Code:
@name <- Gives the E2 a name
@inputs #<- Gives the E2 an input and for those who don't know an input is something that recieves data
@outputs #<- Give the E2 an output for you to beable to send data to other wire items
@persist #<- Makes a global variable used for multiple statements
@trigger #<- Makes the E2 run through the code when an input of your choice is changed
# <- This is a way to make a comment. Anything in the comment doesn't get ran


These are told to us in the default E2 template.
"#" being a comment is implied because nothing happens when running the standard E2.
LFG ZS is the only good server because members rarely get online
[+]
  •
Find
maddman01 Offline
Member
*
Beginner (1)
Posts: 45
Threads: 10
Thanks: 2 in 2 posts
Thanks Given: 4
Joined: Jan 2016
Warning Level: 0%
Member
#3
7-18-16, 02:44 AM
(7-18-16, 01:56 AM)Apekisdered Wrote:
Code:
@name <- Gives the E2 a name
@inputs #<- Gives the E2 an input and for those who don't know an input is something that recieves data
@outputs #<- Give the E2 an output for you to beable to send data to other wire items
@persist #<- Makes a global variable used for multiple statements
@trigger #<- Makes the E2 run through the code when an input of your choice is changed
# <- This is a way to make a comment. Anything in the comment doesn't get ran


These are told to us in the default E2 template.
"#" being a comment is implied because nothing happens when running the standard E2.

Yes but others don't know this. That is why I put it in there.
[+]
  •
Find
Zellogi Offline
Indie Game Dev
***
Legendary (301)
Posts: 2,416
Threads: 65
Thanks: 252 in 214 posts
Thanks Given: 47
Joined: Dec 2015
Warning Level: 0%
gmod_donator_premium
Member
#4
7-18-16, 03:47 AM
I didn't know what persist and trigger was (still don't really know what trigger is) so this helped.
[+]
  •
Find
BLACKROOSTER73 Offline
The Dankest Rooster
***
Beginner (6)
Posts: 180
Threads: 33
Thanks: 3 in 3 posts
Thanks Given: 6
Joined: Jun 2016
Warning Level: 0%
gmod_donator_premium
Member
#5
7-24-16, 03:08 AM
well... i mean... we could always go to this website. but i like what you are doing here.

but i do have a question. if i wanted to loop a command like "!ammo". how would i go about that? i still cant figure out how the loops work.
[Image: e7fc220e8dc068ef7c888a529db75ddd.png]
[Image: 76561198070609346.png]
[+]
  •
Find
Zellogi Offline
Indie Game Dev
***
Legendary (301)
Posts: 2,416
Threads: 65
Thanks: 252 in 214 posts
Thanks Given: 47
Joined: Dec 2015
Warning Level: 0%
gmod_donator_premium
Member
#6
7-24-16, 05:36 AM
If you want to loop just that command, you can set it to an interval.

Code:
interval(1000) #number is in milliseconds, so 1000 = 1 second
  code stuff here
  more code stuff here
  even more code stuff here
#intervals loop endlessly until you delete the E2 chip, just be aware of that.

You get the idea.
[+]
  •
Find
apekis Offline
Shitpostbot9002
***
Great (84)
Posts: 778
Threads: 24
Thanks: 72 in 61 posts
Thanks Given: 239
Joined: Apr 2016
Warning Level: 0%
gmod_donator_premium
Member
#7
7-24-16, 05:50 AM
(7-24-16, 05:36 AM)Zellogi Wrote:
Code:
#intervals loop endlessly until you delete the E2 chip, just be aware of that.
Can't you put the interval under something, such as an if statement?
LFG ZS is the only good server because members rarely get online
[+]
  •
Find
Zellogi Offline
Indie Game Dev
***
Legendary (301)
Posts: 2,416
Threads: 65
Thanks: 252 in 214 posts
Thanks Given: 47
Joined: Dec 2015
Warning Level: 0%
gmod_donator_premium
Member
#8
7-24-16, 06:12 AM
Yes, you can, but I'm just suggesting what I did because @BLACKROOSTER73 wanted to know a way to loop, and mine is about as simple as you can get with loops.
[+]
  •
Find
« Next Oldest | Next Newest »
Thread Closed 


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

  • Contact Us
  • Lenny Face Gaming Forums
  • Return to Top
  • Lite (Archive) Mode
  • Mark all forums read
  • RSS Syndication