• need wire nerds advice.
    8 replies, posted
I play on Rp servers and am usualy the gundealer. i have created my own gunshop with shipment crates. but i want to make it so i can wire a text screen to the box so i can see how many items are left in that crate. is that possiblE?
It would need a custom wire addon.
[QUOTE=Oppy;21330877]It would need a custom wire addon.[/QUOTE] No, it would not. E2 and findInBox(V,V)
findInBox ? That finds entities inside a box, not lua variables.
well I assume the shipment crate has a networked int that shows it's amount of guns, and I bet E2 can get that.
E2 can't get networked ints. I suppose the only logical way is get an E2 to detect when you press E on the box, and subtract 1 every time, The hard part is i guess OP knows shit about wire let alone E2.
Oh, I see what you mean now. Make a box, put crate in, shoot crate.
No I don't know a thing about wire, I can make a few things in wire but I just want it to read what I can see whn I look at the shipment, it comes up something like 10 x M4 that's what I want wire to read and display on a text screen.
You would need a E2 extension to read shipment contents. I'll see if I can find one... EDIT: Here we are: [url]http://divranspack.googlecode.com/svn/trunk/%20divranspack/Divrans%20various%20E2%20Plugins/darkrpfunctions.lua[/url] Goes in : addons\wire\lua\entities\gmod_wire_expression2\core\custom I'll try a quick E2 with that extension. [code] @name Lol Shipments @outputs String:string runOnTick(1) findIncludeClass("spawned_shipment") findInSphere(entity():pos(),200) Crate=find() if (Crate) { String="Crate holds "+Crate:shipmentAmount()+" "+Crate:shipmentContents()+"s" } [/code] Should work. Put it by a crate, wire String to a text screen.
Sorry, you need to Log In to post a reply to this thread.