How do we affect the inputs and outputs with buttons like the Mouse clicks and the keyboard buttons? For example, how do we make a turret shoot with the click of the mouse button, or the press of the G key?
How can I put it to a vehicle? I tried to weld an airboat seat to it but it started to spin like crazy.. I tried it with typing Plate = Entity():isWeldedTo() but it didnt help. So what I was trying to do was to put vehicle on the plate and few thrusters so I could move by pressing W and simply turn just by moving mouse. So how can I make it stop spinning? All values and stuff are just like you put them.
@BurningFiregod Help! I have done all of the code exacly yhe samee @name@outputs Ang:angle runOnTick(1) Plate = entity() O = owner() P = Plate:elevation(O:aimPos()) Y = Plate:bearing(0:aimPos()) R= Plate:angles():roll() Ang = (-ang(P,Y,R)*1000) Plate:applyAngForce(Ang) Plate:applyAngForce(Ang + $Ang*5) It says : No Such Fenction: normal:aimPos() at line 11.char21
How could I use 'applyangForce' to modify the allignment of a prop say through the input of 'W' from an advanced pod controller?
Example: I want to make something like the mini VTOL from terminator with 3 engines that pitch to specific angles to turn the vehicle on my pressing of 'W A S D' from the PodController, W = left and right and rear engines pitch 45 forward ect...
Help? Im kinda new-ish to expression2, I acheived this through wire hydraulics and expression 2 but it spazzes in spacebuild.
I would put it on the heaviest part of the car, and kind of near the middle of it, otherwise parts would be kind of "off" Otherwise, it should work fine.
Aye, Maso did do this too. But more tutorials are nice although you might want to invest in a new mic or quit talking through a cardboard tube 10 feet away from your mic, it is VERY hard to understand you.
I have to agree with this guy, you have some great tutorials. I have to say though, i don't care for the rambling ya often go off into, about your other attempts at the tutorial, or why you hadn't made a tutorial in so long.. I don't care, i just google applyAngForce! BTW, you should try out the Rock Band mic if you have one, it's actually a really clear mic.
What are y'all talking about? I sound like I'm talking through a cardboard tube in real life. lol j/k
Really, before this mic, I had a mic from say 1999 or so, and I sounded like me... The only down side was the crap load of static that was involved, which nobody could understand.
you should add for noob's to the vids title because for experienced e2 users all the extra explaining gets annoying
reapzilla 2 months ago
ok i need help with makeing a e2 fo a mech
comicaldan 7 months ago
How do we affect the inputs and outputs with buttons like the Mouse clicks and the keyboard buttons? For example, how do we make a turret shoot with the click of the mouse button, or the press of the G key?
SolarisBlitz 11 months ago
@SolarisBlitz
@name Turret
@inputs M1
@outputs A
interval(10)
if (M1==1) {A=1}
else {A=0}
^^^ this is the E2
make an adv pod controller and wire M1 to Mouse1 and wire Turret "A" to "A" of E2
beep0666 9 months ago
So basically, any command that ends in (), you use a : instead of a & or a , right?
SolarisBlitz 11 months ago
pwner :D
aflowerispower 1 year ago
Man this is so hard! how did the first guy learn this..
seadude159 1 year ago
@seadude159 He made it :D
SigurdLindh 10 months ago
you should spawn a turret (the tool) at the front of the plate.
now you can use an physgun and an gun at once!!!!!
plutgamer 1 year ago
its better to put
@model (model here)
at the start of the code
Jonassssss6 1 year ago
@Jonassssss6 That function didn't exist over a year ago
BurningFiregod 1 year ago
mine dun float >,< halp
punky14678 1 year ago
please respond:
how can i make the prop turn itself until it´s angles are 0,0,90
perli55 1 year ago
@perli55 Add "+ang(0,0,90)" to Ang
AO273 1 year ago
help me plss!
i want the objects angles to just be 0,0,90 so when i turn it
with physgun it moves back!
perli55 1 year ago
i can tell u were using a mic in an empty room
ThomasDemko 1 year ago
lol i made a chopper gunner out of this
deathsaurer95 1 year ago
How to show FPS?
FallForYou55 1 year ago
@FallForYou55 Net_graph 1
BurningFiregod 1 year ago
@BurningFiregod or cl_showfps 1 , its going to show the fps on top right
alyl603 1 year ago
@FallForYou55 cl_showfps 1
marios97 1 year ago
O = pwner lmao
vancar6 1 year ago
WOW xD BEST EVER
motorcrossXD 1 year ago
try
@model models/phx3 plate blablabla. instead of the console one
RaccooNooB 1 year ago
How can I put it to a vehicle? I tried to weld an airboat seat to it but it started to spin like crazy.. I tried it with typing Plate = Entity():isWeldedTo() but it didnt help. So what I was trying to do was to put vehicle on the plate and few thrusters so I could move by pressing W and simply turn just by moving mouse. So how can I make it stop spinning? All values and stuff are just like you put them.
Kadagar 1 year ago
@Kadagar Add this to the beginning:
Plate:setMass(50)
BurningFiregod 1 year ago 3
Hey if I have an entity type variable, how can I reset to nil?
like Entitiy = nil
What I do is Entity = owner():driver() but that's ugly and slow.
Any better way to do it?
guyboy625 1 year ago
lol, u wrote Pwner instead of owner(), that pwns
stickmakerman 1 year ago
hmm cant get it to work keeps saying that i cant use a temporary value with
$Ang
what do i do?
Cynori 1 year ago
@Cynori
Make sure you have
Ang = (-ang(P,Y,R)*1000)
Plate:applyAngForce(Ang + $Ang*5)
BurningFiregod 1 year ago
@BurningFiregod
I have the same problem, I copied what you just wrote and even now it wont accept it :(
Dreadpap 1 year ago
This has been flagged as spam show
vancar6 1 year ago
@Cynori
put Ang in @persist
such like @persist Ang:angle
might help
drfrev 1 year ago
@Cynori You have to write
@persistent Ang
at the beginning
guyboy625 1 year ago
Lol@ your FPS :P
pie6nin 1 year ago
nvm ^^
how can i make it flow over my head aswell ?
GladGulGubbe 2 years ago
wow, hey glad!
(I'm Napalm btw)
Seagul91 2 years ago
hey:D awesoome!
GladGulGubbe 1 year ago
It just flips around, dosent stay in the air like yours does /:
why ?
GladGulGubbe 2 years ago
To "freeze" the prop in the air you can just use physical proprieties > then untick Gravity toogle and apply on the prop, it will stay in the air :)
YottaCSS 2 years ago
How could I use 'applyangForce' to modify the allignment of a prop say through the input of 'W' from an advanced pod controller?
Example: I want to make something like the mini VTOL from terminator with 3 engines that pitch to specific angles to turn the vehicle on my pressing of 'W A S D' from the PodController, W = left and right and rear engines pitch 45 forward ect...
Help? Im kinda new-ish to expression2, I acheived this through wire hydraulics and expression 2 but it spazzes in spacebuild.
ilovepinkfloydyay 2 years ago
Pwner() =D
schneggedigger 2 years ago
aimPos
:P
Nicro327 2 years ago
Thank you, ive been trying to do this without it flipping all over the place....this was my old code:
interval(10)
E=entity()
E:applyForce(owner():aimPos()*50-entity():pos()*50)
E:applyAngForce(ang(owner():aimPos()*50-entity():pos()*50)
Nicro327 2 years ago
will this be able to mount it on a moving object?
and how would you do it
Peetah16 2 years ago
Its called the weld tool?
Idk what you mean by mount really.
BurningFiregod 2 years ago
like for example put it on a car. and it'll still be able to aim
Peetah16 2 years ago
I would put it on the heaviest part of the car, and kind of near the middle of it, otherwise parts would be kind of "off" Otherwise, it should work fine.
As long as you have Plate = entity():isWeldedTo
BurningFiregod 2 years ago
Aye, Maso did do this too. But more tutorials are nice although you might want to invest in a new mic or quit talking through a cardboard tube 10 feet away from your mic, it is VERY hard to understand you.
MoretoDomo 2 years ago
I have to agree with this guy, you have some great tutorials. I have to say though, i don't care for the rambling ya often go off into, about your other attempts at the tutorial, or why you hadn't made a tutorial in so long.. I don't care, i just google applyAngForce! BTW, you should try out the Rock Band mic if you have one, it's actually a really clear mic.
Vicious713 2 years ago
I have a simple logtech desktop usb mic, it has quite good quality, even my older one that plugs into the mic hole is good quality.
MoretoDomo 2 years ago
What are y'all talking about? I sound like I'm talking through a cardboard tube in real life. lol j/k
Really, before this mic, I had a mic from say 1999 or so, and I sounded like me... The only down side was the crap load of static that was involved, which nobody could understand.
BurningFiregod 2 years ago
Comment removed
jorisky80 2 years ago
That is your fault, learn some math kid, and stay off the internet for a few years.
BurningFiregod 2 years ago
i did this and it just like spazzed out and killed me, i like triple checked and everything,whats wrong?
Dazbme 2 years ago
OMG dude MASO DID THIS ALREADY !! ITS EXACTLY THE SAME !!
GGmod 2 years ago
Do you wish to provide a link, so I can see for myself?
BurningFiregod 2 years ago
note: If you want to make it work on any prop without having to change it in the console=
Change Plate = Entity()
to Plate = Entity():isWeldedTo()
and then you can use the chip on any prop without having to change it in console
gsruler 2 years ago
I explained that in the video at 2:30.
But if your just reminding people that is perfectly fine.
BurningFiregod 2 years ago
just reminding =)
gsruler 2 years ago
Oh, and thanks for the tutorials =)
gsruler 2 years ago
Lol no problem, Thanks for watching. :D
BurningFiregod 2 years ago
I always change the model I dont like how it looks with the e2 chip atached to it =S
Now I know that i can just set enttiy():setAlpha(0) but instead i just binded a key to cange the model to phx 1x1
GmansApprentice 2 years ago
ah, I guess that would be just as easy then =)
gsruler 2 years ago
yayz you saw my comment =3 and this was a big help ty
Xecuter274 2 years ago
I've seen comments and private messages lol, overall around 10 or 11 people have suggested this before.
BurningFiregod 2 years ago
lmao
Xecuter274 2 years ago
how do you edit props? i like the repaint you made. i would like to be able to do it too :)
skierplaterandy 2 years ago
Keyword: Photoshop
BurningFiregod 2 years ago
Nice work.
humblesnurp 2 years ago