Jump to content

How to Prevent doors from open when punched?


SuperM

Recommended Posts

Hello there,
I need some help because I have no clue on how to prevent for example item id 1569 object (ADAM_V_DOOR) from open when punched.
If you place it on the map and you punch it, it will open, but when it returns to is original position if you punch it will not open, how can I prevent it from open al the time, I need it to block th entrance and for that it can't move.

Link to comment
12 hours ago, IIYAMA said:

@SuperM

Open your map file in your text editor.

Search for the id.

And give the node the attribute: frozen="true". (Check if the attribute is already added)

Add it like that: (don't copy/past)


<object frozen="true"></object>

 

https://wiki.multitheftauto.com/wiki/Element/Object

Hello there and thanks you so much for your help!

I still have a problem, at the moment I'm getting the object position from database and the line of code is this one:

 

local Object = createObject(row["objectID"], row["X"], row["Y"], row["Z"], row["RX"], row["RY"], row["RZ"])

and my output to the server is the following one: 

1569, 1796, -1744.5, 12.6, 0, 0, 180.5

So if if i was scripting it it should look like this:
 

createObject ( 1569, 1796, -1744.5, 12.6, 0, 0, 180.5 )

How can I add those Frozen parameter to it? I mean I was checking the page https://wiki.multitheftauto.com/wiki/CreateObject and there is no option for it.

Edited by SuperM
  • Like 1
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...