Jump to content

Start a Created Map with Gates locked


nsg3
 Share

Recommended Posts

I have a map I'm working on that I have some animals trapped inside of siege walls. There is a gate facing inward to give the illusion it can only be opened from the outside.

Problem is when I start the match all of the animals run out of the pins through the gate.

How do I make it so the Gate's default state is locked?

Link to comment
Share on other sites

  • 2 weeks later...
On 7/16/2020 at 9:18 AM, nsg3 said:

I have a map I'm working on that I have some animals trapped inside of siege walls. There is a gate facing inward to give the illusion it can only be opened from the outside.

Problem is when I start the match all of the animals run out of the pins through the gate.

How do I make it so the Gate's default state is locked?

Line 266 here:

https://github.com/SciGuy42/Macedonia_0ad/blob/master/maps/scenarios/Macedonia_12.js

Unfortunately, in practice it didn't work very well perhaps because the AI kept unlocking the gates.

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...