Seats
NPC can be made to sit down only on these actors
Prerequisites
Properties
-
Events
- Tag
-
Seat
- sitPoint
Used by ScriptedPawns to locate the seat
A vector defining where in relation to the actor's origin an NPC will sit
How to
- Place a
Seatin your map from theDecoration > DeusExDecoration > Furniture > Seatsection. - Open its properties and set
Events > TagtoMySeat. - Place a
ScriptedPawnin your map and open its properties. - Set the
Orders > OrderstoSitting. - Set the
Orders > OrderTagtoMyChair.
Note
For an NPC to use a chair, their need to be able to "find" it. Make sure there is enoug room around the chair for the NPC to move there, and that there is a clear path to it.
Making custom seats
Apart from subclassing a seat and assigning a custom mesh, you can also trick NPCs to sit on BSP geometry.
- Add a special brush to your map, set it to
Non-Solid. It should be the same height as a seat. - Place a seat inside it and open its properties.
- Set the
Advanced > bHiddentoTrue. - Set the
Movement > PhysicstoPHYS_None.