Jump to content

LUA . Breakable!


Kekoo

Recommended Posts

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 by Guest
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...