SuperM

How to Prevent doors from open when punched?

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.

Share this post


Link to post

@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

Edited by IIYAMA

Share this post


Link to post
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

Share this post


Link to post

Maybe put something like an invisible ped or object behind the door to block it from opening
 

Share this post


Link to post

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.