hello everyone.
As some of you might have read i've been having some problems on a project i am currently udertaking but last night it suddenly came to me. If i could make an object copy an identical objects movements exactly, i would have no problems at all.
So does anyone know of a tool or a method of making two identical objects copy each others movements exactly?
THIS MIGHT HELP EXPLAIN WHAT I AM TALKING ABOUT!!!!
[url]http://yfrog.com/5xcopytooldiagramj[/url]
Duplicator
[URL]http://www.garrysmod.org/downloads/?a=view&id=23683[/URL]
It's similar to the duplicator, but it has some different features.
Guys could you read the post before replying? that has nothing to do with what i need.
Can be done via E2, I know that much.
[QUOTE=whosdr;23901230]Can be done via E2, I know that much.[/QUOTE]
E2? what is that?
Expression 2. It comes with wire, and allows you to script actions which can change objects, or just print numbers. It's complex, but very flexible.
I think the word you're looking for is "mimic" not copy.
And yes, I would say that E2 is definitely your best bet.
Install wire extras if not already, and run in server console 'wire_expression2_extension_enable propcore' and 'wire_expression2_reload'
Put this code into the Expression 2 editor.
[code]
@inputs [E1 E2]:entity
if (first()) {
runOnTick(1)
}
if (->E1 & ->E2) {
E2:setPos(E1:pos())
E2:setAng(E1:angles())
}
[/code]
Create 2 entity markers (Under wire - detection) and link them to the two entities (right click marker, right click entity)
Wire E1 to the first marker, and E2 to the second.
[QUOTE=whosdr;23901390]Install wire extras if not already, and run in server console 'wire_expression2_extension_enable propcore' and 'wire_expression2_reload'
Put this code into the Expression 2 editor.
[code]
@inputs [E1 E2]:entity
if (first()) {
runOnTick(1)
}
if (->E1 & ->E2) {
E2:setPos(E1:pos())
E2:setAng(E1:angles())
}
[/code]
Create 2 entity markers (Under wire - detection) and link them to the two entities (right click marker, right click entity)
Wire E1 to the first marker, and E2 to the second.[/QUOTE]
Could you by any change explain that in a little more detail? :)
I'm sorry, I can't.
[QUOTE=whosdr;23912950]I'm sorry, I can't.[/QUOTE]
OK could somone else tell me what exactly this guy is explaining?
Forget the other replies.
Get out the advanced ball socket tool, make the XYZ mins be the highest value on the slider, and the maxes the lowest. Then use it on two props, and they'll mimic eachother.
[QUOTE=Bletotum;23940946]Forget the other replies.
Get out the advanced ball socket tool, make the XYZ mins be the highest value on the slider, and the maxes the lowest. Then use it on two props, and they'll mimic eachother.[/QUOTE]
I'm going to test this right away!
[editline]07:50PM[/editline]
DOESN'T WORK!!!!
All it does is spazzes out...
Please tell me what im doing wrong...
adv dupe if you wanna copy mdls without emotion.
[QUOTE=PonceDeLeon;23942017]adv dupe if you wanna copy mdls without emotion.[/QUOTE]
Read the post please.
[QUOTE=Joe Phoenix;23941380]I'm going to test this right away!
[editline]07:50PM[/editline]
DOESN'T WORK!!!!
All it does is spazzes out...
Please tell me what im doing wrong...[/QUOTE]What settings are you using? Adv. Ball-socket is how I would do this.
[QUOTE=Neo Kabuto;23942667]What settings are you using? Adv. Ball-socket is how I would do this.[/QUOTE]
I've put all the settings to 0 which makes the props copy each others AXIS movements but they do not copy each others movements, any suggestions?
[QUOTE=Joe Phoenix;23943408]I've put all the settings to 0 which makes the props copy each others AXIS movements but they do not copy each others movements, any suggestions?[/QUOTE]
Weld stuff together? That works for me when I want wheel movements to be synchronized. Not sure if it will work for you, though.
This might help explain what i'm on about!
[url]http://yfrog.com/5xcopytooldiagramj[/url]
[QUOTE=Joe Phoenix;23943408]I've put [b]all[/b] the settings to 0 which makes the props copy each others AXIS movements but they do not copy each others movements, any suggestions?[/QUOTE]
You don't deserve any help if you can't follow the directions given from those who would.
[QUOTE=Bletotum;23980315]You don't deserve any help if you can't follow the directions given from those who would.[/QUOTE]
Sorry mate I tried it your way, just causes the prop to go spazzy, so i tried it the way others have suggested, still spazzy.
Althought the min/max method did result in the largest amount of spaz..
Could still use a hand.
[QUOTE=whosdr;23901390]Install wire extras if not already, and run in server console 'wire_expression2_extension_enable propcore' and 'wire_expression2_reload'
Put this code into the Expression 2 editor.
[code]
@inputs [E1 E2]:entity
if (first()) {
runOnTick(1)
}
if (->E1 & ->E2) {
E2:setPos(E1:pos())
E2:setAng(E1:angles())
}
[/code]
Create 2 entity markers (Under wire - detection) and link them to the two entities (right click marker, right click entity)
Wire E1 to the first marker, and E2 to the second.[/QUOTE]
This is the post you want.
[QUOTE=lavacano;24047007]This is the post you want.[/QUOTE]
Actually, I made a mistake in that.
What mistake did you make whosdr? :)
It needs to copy velocity, not position. Or perhaps position relative to the two props.
Could you show me what changes i need to make?
Not tonight.
kk, tell me tommorow :)
Sorry, you need to Log In to post a reply to this thread.