Kekoo Posted January 19, 2015 Share Posted January 19, 2015 (edited) Hello dudes! Iv been working on one mapping in my Map Editor server some days now. And im wondering cuz iv got it to Doublesided and Collision false. But i aint getting ths fucking Breakable to work. The mapping is made in .MAP file. Its changed to an .lua now, This is how it looks like now . (Its an example) for k, v in ipairs({ createObject ( 2232, 247.8, -233.89999, 6.1, 0, 0, 90 ), createObject ( 3920, 242.3, -230.3, 9.8, 0, 0, 90 ), createObject ( 3920, 242.39999, -242.8, 9.8, 0, 0, 90 ), createObject ( 3920, 242.39999, -249, 9.8, 0, 0, 90 ), }) do setElementDoubleSided(v, true) setElementInterior(v,0) setElementDimension(v,0) setElementCollisionsEnabled(v, true) setObjectBreakable(v, false) end I did found the setObjectBreakable here on the wiki. But It aint working so maybe some of you guys know how i would do. its these windows in sf car shop or what i would call it. Buts its exactly near Train Station. The windows there i wan to be Un-breakable Thanks For Answeres! Edited January 19, 2015 by Guest Link to comment
Moderators IIYAMA Posted January 19, 2015 Moderators Share Posted January 19, 2015 Function works fine with me, you should execute it clientside. Link to comment
Kekoo Posted January 19, 2015 Author Share Posted January 19, 2015 Function works fine with me, you should execute it clientside. How do you mean? Link to comment
Bonsai Posted January 19, 2015 Share Posted January 19, 2015 Are those objects even breakable? Link to comment
Kekoo Posted January 26, 2015 Author Share Posted January 26, 2015 Bonsai. These object i did place here is just for an example. The ones i want to be un-brakable is the windows in SF Carshow place. But its on a mapped base Link to comment
Dealman Posted January 26, 2015 Share Posted January 26, 2015 setObjectBreakable is client-side only. This means it can only be triggered on the client, and not the server. You can use triggerClientEvent to have the Server trigger client-side events which will set those objects as breakable or not. Use the aforementioned function to transmit the object elements to the client. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now