• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[General] Make Enterable buildings?

Status
Not open for further replies.
Level 2
Joined
Jun 1, 2011
Messages
13
Okay so i have played left4dead and i saw that the buildings were enterable, like you could just walk into one. I would like to know how to do that! It would be a great help to make my map as realistic as i want it. Thanks!
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
The easy solution is to create several rects ('regions').

The trigger would look as follows:
  • Melee Initialization
    • Events
      • Unit - A unit enters EnterRegion 1
    • Conditions
    • Actions
      • Set tempLoc = (Center of TeleportRegion 1)
      • Unit - Move (Triggering unit) instantly to tempLoc
      • Custom script: call RemoveLocation(udg_tempLoc)
You'll have to do this for all houses (twice: one to enter, one to leave).
 
Level 2
Joined
Jun 1, 2011
Messages
13
The easy solution is to create several rects ('regions').

The trigger would look as follows:
  • Melee Initialization
    • Events
      • Unit - A unit enters EnterRegion 1
    • Conditions
    • Actions
      • Set tempLoc = (Center of TeleportRegion 1)
      • Unit - Move (Triggering unit) instantly to tempLoc
      • Custom script: call RemoveLocation(udg_tempLoc)
You'll have to do this for all houses (twice: one to enter, one to leave).

Well i don't mean creating another region in general (such as having the doodad of the house in one place and the inside of it elsewhere), something more along the lines of the unit actually walking into the doodad (house).
 
Status
Not open for further replies.
Top