Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Controlling doors...
Controlling doors...
Nov 30 2008, 8:49 pm
By: RISKED911  

Nov 30 2008, 8:49 pm RISKED911 Post #1



Im trying to make it so when i move unit to location, it will make door go down, but to make door go up is a tricksituation.

Whats a goodtrigger for that?



None.

Nov 30 2008, 8:53 pm Devourer Post #2

Hello

trick situation? whatever
i already answerd it @ shoutbox

to open door: disable doodad state
to close: enable doodad state
whatever, the most use it: switch doodad state

PLAYER brings exactly 1 UNIT to X
switch DOODAD STATE for DOOR @ Z



Please report errors in the Staredit.Network forum.

Nov 30 2008, 8:56 pm RISKED911 Post #3



trigger for closing the door is something i need to know too.



None.

Nov 30 2008, 8:56 pm Biophysicist Post #4



Trigger 1: (Doors opening)
Conditions: All players bring at least 1 men to "Door 1".
Actions: Disable doodad state for <door> at "Door 1" for all players. Preserve trigger.

Trigger 2: (Doors closing)
Conditions: All players bring exactly 0 men to "Door 1".
Actions: Enable doodad state for <door> at "Door 1" for all players. Preserve trigger.

(You might need different conditions like if you only want a certain unit or a certain player to open doors, but the actions are the same no matter what. You MUST use "All Players" for the Enable/Disable Doodad State triggers, and MUST preserve the triggers.)

Replace <door> with whichever door you are using, eg. Left Pit Door.



None.

Nov 30 2008, 11:06 pm Falkoner Post #5



Enable = Closed(Default) Disable = Open

Note that you may want to use a switch so that you know when it's open or closed, rather than just constantly disabling it when the person goes next to it, or enabling it, because that causes glitches with the door animation sometimes.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[08:43 am]
TheHappy115 -- Yea, thats the issue. Thanks. It would also explain why my deleted map couldn't get updated. Updated version reduced collision on units (only thing added) since was dodging game (players collide with each other)
[05:26 am]
Ultraviolet -- If so, I'd just focus on getting them on scmscx.com and then you can link to that in the showcase thread for your maps
[05:25 am]
Ultraviolet -- I can't upload my EUD maps, I think the DLDB has some issue with handling them. Are you trying to upload EUD maps?
[2024-5-28. : 2:06 am]
TheHappy115 -- Its been awhile but ever since I requested one of the Maps I posted to be deleted since I couldn't delete it myself (or update it), I haven't been able to upload any more maps. Any reason for that?
[2024-5-26. : 7:14 pm]
Kyradax -- Hi
[2024-5-26. : 5:05 pm]
O)FaRTy1billion[MM] -- :wob:
[2024-5-25. : 9:22 am]
Zycorax -- :wob:
[2024-5-23. : 3:50 pm]
Ultraviolet -- :wob:
[2024-5-23. : 6:26 am]
UndeadStar -- :wob:
[2024-5-22. : 6:10 am]
Riney -- Somethings never change.
Please log in to shout.


Members Online: Zergy, O)FaRTy1billion[MM]