A plugin with a collection of door actors.
This plugin required this plugins to work:
- TrickyInteractionSystem v2.0 and higher;
- TrickyAnimationComponents v2.0 and higher;
- TrickyKeyringSystem v2.0 and higher;
Install them before installing this plugin.
The plugin can be used in both C++ and Blueprint projects.
At the moment, the package is compatible only with Unreal Engine 4.
- Download the latest package file;
- Install the plugin either in your project or for all projects in engine:
- Unzip the package into Plugins folder of your project, e.g.
D:\UnrealProjects\MyProject\Plugins
; - Unzip the package to the Plugins folder in engine folder, e.g.
C:\Program Files\Epic Games\UE_5.0\Engine\Plugins
;
- Unzip the package into Plugins folder of your project, e.g.
- Restart the project;
In this case the plugin can be used for any blueprint project.
- Create the Plugins folder in the project directory;
- Create the TrickyAnimationComponents folder in the Plugins folder;
- Download the plugin source code into that folder;
- Rebuild the project;
- DoorBase class;
- DoorAuto class;
- DoorInteractive class;
A base door class which contains the basic door logic.
The door uses the TimelineAnimationComponent from TrickyAnimationComponents.
Read the instructions how to setup it on its git page.
InitialState
- the door state on begin play;IsReversible
- toggles if the door animation can be reversed;CalculateSwingDirection
- If true, the rotation offset can be recalculated using theCalculateSwingDirection
function;
Open
- opens the door;Close
- closes the door;SetIsLocked
- sets if the door is locked or not;SetIsEnabled
- sets if the door is enabled or not;StartAutoClosingTimer
- starts the timer after which the door will be closed automatically;StopAutoClosingTimer
- stops autoclosing timer;CalculateSwingDirection
- calculates new rotation offset relative to the given actor;
OnStateChanged
- called when current state was changed;OnReversed
- called when door animation was reversed;
OnDoorChangedState
- called when the current state was changed;OnDoorAnimationReversed
- called when the door animation was reversed;
A door which can be opened automatically by entering a trigger.
RequireKey
- toggles if the door requires a key to open it;KeyClass
- key class which the actor must have to open the door;IsClosingDelayed
- toggles if the door will close automatically after some time;ClosingDelayDuration
- delay after which the opened door will close automatically;
A door which requires interaction to be opened.
RequireKey
- toggles if the door requires a key to open it;KeyClass
- key class which the actor must have to open the door;IsClosingDelayed
- toggles if the door will close automatically after some time;ClosingDelayDuration
- delay after which the opened door will close automatically;InteractionData
- data used for interaction;InteractionMessages
- interaction messages for different states of the door;CantUnlockMessage
- the message in case the actor don't have a key to unlock the door;