Men of War: Assault Squad 2

Men of War: Assault Squad 2

RyansPlace Jul 8, 2017 @ 10:38pm
GEM Editor: Open/close door script for player/allies
I've been studying the script on this page (below) and can't find a better tutorial on making door scripts that will open for players and allies. Can anyone help?

http://www.digitalmindsoft.eu/forums/forum/dms-games/men-of-war/english/modding/tutorials-faqs/6683-how-you-can-open-close-door-gate-and-fences
< >
Showing 1-7 of 7 comments
CaptainMacTavish Jul 9, 2017 @ 4:45am 
Dilust explained the script pretty well, what do you mean with better tutorial?
RyansPlace Jul 9, 2017 @ 6:33pm 
He did. I'm trying to make it with following conditions:

Player/Allies/Enemy - Door opens

Or

Player/Allies - Door opens
Enemy - Door remains closed.

Plus i'm new to MOW scripting, so learning curve.
Last edited by RyansPlace; Jul 9, 2017 @ 6:33pm
CaptainMacTavish Jul 12, 2017 @ 3:05pm 
Sorry for the lack of annotations but i really suck at video editing

https://www.youtube.com/watch?v=k2IC-gtNUTw

In the video i show 3 types of gates:

Gate 1 (the large one)
Gate 2 (the tall one)
Gate 3 (it's the same as gate 1)

Gate 1 uses a more complex script and two waypoints to add a nice animation when opening the door. This is just a fancy way to do the script and it's not going to work if you use player units.
It has a rectangular area for each waypoint (gate1out & gate1in) and it closes when all units are outside of both areas.

I think Gate 2 is the most functional (no animation tho). It's pretty, it only uses two scripts + one area and it closes when all units are outside, just like Gate 1.

Gate 3 is the script made by BestWay. As you can tell from the video it has a big downside:
The door will constantly open/close when the units are inside its area. That can be a little annoying :/

If you have any futher question feel free to ask!
I'll upload a couple of missions on the workshop tomorrow; you can tear them apart if you want and see how they work :)
Last edited by CaptainMacTavish; Jul 12, 2017 @ 5:31pm
RyansPlace Jul 13, 2017 @ 8:02am 
CaptainMac-

Thank you for the vid. I agree option 2 wil work best for a flag-fort entryway (see images). I eventually want to tie their use to flag ownership. I'm struggling to make it work. When you do your next vid, could you do a walk-through of how to set it up? In your last vid, I couldn't see what the entity properties were.

https://steamcommunity.com/sharedfiles/filedetails/?id=973406319
https://steamcommunity.com/sharedfiles/filedetails/?id=973407382


Also, I had a CDL when attempting to load your desert canyon map. I can send you the error code if you'd like.
Last edited by RyansPlace; Jul 13, 2017 @ 8:06am
Nobutora Mar 19, 2020 @ 2:47pm 
his video indications doesn't work for mowas 2
commander Isaac Mar 4, 2024 @ 1:05pm 
can u use a wall too
commander Isaac Mar 4, 2024 @ 1:06pm 
as a gate
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Jul 8, 2017 @ 10:38pm
Posts: 7