• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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