# Interactcraft node reference Every Blueprint node, event and setting, from the plugin's headers. The README explains how they fit together. ## Which node do I use | To | Use | |---|---| | Let a player use what they look at | Nothing: the interactor binds its key. Or Begin Interact and End Interact from your own input | | Make a bot or a script use something, with the checks a player gets | Interact With or Interact With Option (server), on the interactor of the bot | | Wait in a Blueprint until that use is done | Interact And Wait | | An AI in a Behavior Tree or a State Tree | The ITC Interact task, or ITC Use Smart Object | | Gate interacting behind tags, cooldowns and costs | ITC Interact Ability (InteractcraftGAS) | | Run what a press would run, with no player (a cutscene) | Run Actions, or Set Open and Set On on the pieces (server) | ## Which event runs where | Event | Runs on | |---|---| | On Interacted, On Option Interacted | The server only: game logic (XP, quests, inventory) | | On Interacted Locally | The pressing player’s machine only: a sound or a screen for that player | | On Refused | The server; On Refused Locally on the pressing player’s machine, with the reason | | On Hold Started, On Hold Ended (interactable) | The server; the hold progress replicates, so every machine draws the bar. The interactor has its own for the holding player | | On Focus Changed, On Option Selected (interactor) | The local player’s machine | | Door, switch and keypad state changes (OnRep) | Every machine, from the replicated state | ## Words used here | Here | In Unreal terms | |---|---| | The player's machine, the player's own machine | The owning client: the local player's machine (on a listen server, the host for its own pawn) | | Every machine | Server and all clients, through replicated properties and their OnRep | | The server | The authority: a dedicated or listen server, or the game itself in single player | | Asleep on the network, wakes | Net Dormancy (DORM_DormantAll, DORM_Awake) | | The thing, the object, the piece | The actor that carries an ITC Interactable | | Turned down | Refused on the server (EITCRefusal), with On Refused and On Refused Locally | ## ITC Interactor On the pawn of whoever interacts: a player or an AI. | | Name | What it does | |---|---|---| | Setting | **Focus Mode** | Aim: what the crosshair is on (first and third person). Nearest: what is closest (top-down, side view). Set on the server during play and the player's machine follows, so the two never check the press differently | | Setting | **Interact Range** | How far the player reaches, in cm, measured from their eyes. An interactable's own Range wins over it | | Setting | **Needs Clear Path** | Nothing solid may stand between the player and what they use: no opening a door through a wall | | Setting | **Trace Channel** | The trace channel the aim and the clear path use | | Setting | **Focus Refresh Seconds** | Seconds between two looks for the focus. The key press always looks again | | Setting | **Latency Slack** | Extra reach the server allows, in cm: with latency the player has moved since they pressed | | Setting | **Aim Assist Degrees** | Aim mode: with nothing under the crosshair, the key takes what is within this many degrees of it. 0: only what the crosshair is on. For mouse and keyboard | | Setting | **Gamepad Aim Assist Degrees** | The same while the player is on a gamepad, where landing a stick on a keypad is hard | | Setting | **Max Distance From Origin To Parts** | Nearest mode and the dots skip anything whose actor origin is further than its reach plus this, before measuring its shape. Raise it for an actor whose parts sit far from its origin (a ship with its wheel 20 m out) | | Setting | **Server Aim Check Degrees** | Aim mode, server side: a press on something further than Server Aim Check Distance is taken only if it is within this many degrees of where the player looks. Stops a cheat pressing what is behind the player | | Setting | **Min Seconds Between Presses** | Presses closer together than this are dropped, on the player's machine and on the server (a little looser there, for jitter). Nobody presses ten times a second; a client that does is flooding the network. Lower it for a game built on mashing the key | | Setting | **Server Aim Check Distance** | Closer than this, in cm, the server takes a press whatever the angle: a switch at the player's feet | | Setting | **Highlight Material** | The outline: an overlay material put on the focused actor's meshes. None: no outline | | Pure | **Get Focused** | What the key would use now, on the player's own machine. None when nothing is in reach | | Pure | **Get Focused Prompt** | The prompt of the focus for this player, as of the last look for the focus. Empty when there is none | | Node | **Refresh Focus** | Looks for the focus now instead of waiting for the next refresh | | Event to override | **Get View Point** | Where the aim starts and points. As shipped: the player's camera | | Pure | **Check Interaction** | What stands in the way of this player using Target, None when nothing does. With Slack the server's extra reach counts | | Event | **On Focus Changed** | The local player's machine: the focus changed. None when it was lost | | Pure | **Get Focused Options** | What the focus offers this player, as of the last look for the focus. Empty for an object with no options | | Pure | **Get Selected Option Index** | The option the wheel or D-pad picked, in Get Focused Options | | Pure | **Get Selected Option** | The id of the option the key would do now. None when the focus has no options | | Node | **Select Option** | Moves the pick down the list (1) or up (-1), around the ends. As shipped the mouse wheel and the D-pad call it | | Event | **On Option Selected** | The local player's machine: the picked option changed | | Setting | **Mark Nearby** | Dots on what can be used around the player, so a lever in a dark corner is found without sweeping the crosshair over every wall | | Setting | **Nearby Range** | How far from the player a dot shows, in cm | | Setting | **Max Nearby Markers** | The closest ones win | | Pure | **Get Nearby** | What the dots are on now: usable by this player, in Nearby Range, in sight, and not the focus. Closest first | | Node | **Refresh Nearby** | Looks for what is nearby now instead of waiting for the next refresh | | Setting | **Interaction Enabled** | Off, this player uses nothing (dead, stunned, in a cutscene). Set it on the server | | Event to override | **Is Interact Allowed** | Override in a Blueprint child: false while this player may not interact (stunned, carrying something, in a vehicle). Asked on the player's machine and again on the server, like Interaction Enabled but worked out from your own state, with no GAS needed. True as shipped | | Node | **Begin Interact** | The interact key went down, on the player's own machine: uses the focus, or starts holding it | | Node | **End Interact** | The interact key came up | | Node | **Interact With** | Server: this player uses Target, with the same checks a key press gets. For a bot. Server only. | | Node | **Interact With Option** | Server: the same, for one of Target's options. None takes the first one it offers this player. Server only. | | Node | **Stop Interacting** | Server: lets go of the hold or use under way, as if the key came up. For a bot, which has no key to release, or a player taking damage. Server only. | | Pure | **Get Use Montage Playing** | The montage a use is playing on this player now. None when there is none. Every machine | | Pure | **Get Refusal Count** | How many times this player was turned down, counted on the machine that hears it: theirs, or the server for a bot | | Pure | **Get Server Refusal Count** | Server: how many times this player was turned down, counted on the server for everyone, bots and remote players alike | | Pure | **Get Last Refusal Text** | What the last refusal said, when the object gave a reason (a keypad locked out, a condition). Empty otherwise | | Pure | **Get Recent Refusal Text** | The player's machine: why Target last turned this player down, for 2 seconds. Empty after that, or for another target. What the ready prompt writes | | Pure | **Get Using** | Server: what this player holds the key on now. None when they hold nothing | | Pure | **Is Moving To Use Spot** | True while the player slides or turns to a use spot, on the server and on the player's own machine | | Event | **On Use Spot Reached** | The player got to the use spot of Target: on the server, and on the player's own machine when they are a player | | Setting | **Max Use Spot Distance** | Farthest a use spot can be from the player, in cm, for them to slide there. Beyond it they use the thing from where they stand | | Pure | **Get Using Option** | Server: the option this player is holding the key for | | Pure | **Is Holding** | True while the player holds the key on something, on their own machine | | Pure | **Get Hold Progress** | 0 to 1: the hold progress of the focus, whoever is holding it | | Event | **On Interaction Refused** | The player's machine: the key was turned down, by their own machine or by the server | | Event | **On Interaction Succeeded** | The server, and the player's own machine: a use went through (a press the object took, or a hold that filled). For a toast, a stat, XP | | Event | **On Hold Started** | The player's machine: they started holding the key on Target | | Event | **On Hold Ended** | The player's machine: the hold ended. Completed is false when they let go, looked away or the server dropped it | | Node | **Add Key** | Server: one more key with this id. False: not added, the key ring is full (64). Server only. | | Event to override | **Has Key** | Whether the player has a key with this id. Override it to ask your own inventory instead | | Event to override | **Consume Key** | Server: uses one key with this id up. Override it together with Has Key. Server only. | | Pure | **Get Keys** | The keys on this player, on the server and on the player's own machine | | Setting | **Keys Go With Player** | The keys go with the player, not the body: when this pawn is left (death, a vehicle, a respawn) they are kept for the player and handed to their next pawn with an interactor. Off: they die with this pawn | | Node | **Set Keys** | Server: the whole key ring at once, for a loaded game. Save Get Keys with your player's data. Server only. | | Event | **On Keys Changed** | Every machine: a key was added or used up | | Setting | **Set Up Input** | Binds Interact Action on the pawn's Enhanced Input component and adds the mapping context for the local player | | Setting | **Toggle Hold** | Accessibility: one press starts a hold and the next press lets go, so nobody has to keep the key down. Letting go of the interact key does nothing; looking away still lets go | | Setting | **Interact Action** | Your own action for the interact key. None: one is made at begin play, mapped to Interact Key and Interact Gamepad Key | | Setting | **Mapping Context** | Your own mapping context with Interact Action in it. None with your own action: you add your context yourself | | Setting | **Mapping Priority** | Priority of Mapping Context when the interactor adds it | | Setting | **Interact Key** | The keyboard key of the context made when you bring none | | Setting | **Interact Gamepad Key** | The gamepad button of the context made when you bring none | | Setting | **Show Prompt** | Puts Prompt Widget Class on the local player's screen | | Setting | **Prompt Over Object** | The prompt is drawn over the object it is about (its Get Prompt Location). Off: it stays in one place on the screen | | Setting | **Hide Prompt While View Held** | The prompt and the dots hide while the player controller ignores look input (a keypad screen, a menu). Turn it off in a game whose camera never takes look input: a fixed or top-down camera, a vehicle | | Setting | **Prompt Widget Class** | The prompt: ITCPromptWidget builds its own layout, a Blueprint child draws yours | | Pure | **Is Using Gamepad** | True when the last input came from a gamepad | | Pure | **Get Interact Key** | The key the prompt should show: the one mapped to Interact Action on the device in use, as of the last look for the focus | | Pure | **Get Prompt Widget** | The prompt on this player's screen, when Show Prompt is on | | Event | **On Input Device Changed** | The local player's machine: they went from keyboard to gamepad or back | | Setting | **Inspect Distance** | How far in front of the camera the inspected object floats, in cm | | Setting | **Inspect Size** | The inspected object is scaled so its longest side is this many cm | | Setting | **Inspect Rotate Speed** | Degrees per unit of mouse or stick input | | Setting | **Inspect Zoom Range** | Closest and farthest the zoom goes, as a share of Inspect Distance | | Node | **Begin Inspect** | The local player's machine: brings a copy of Target's meshes in front of the camera to turn around. Nothing replicates | | Node | **End Inspect** | Puts the inspected object back | | Node | **Add Inspect Rotation** | Turns the inspected object: X around the vertical, Y around the horizontal, in input units | | Node | **Add Inspect Zoom** | Above 0 brings the inspected object closer | | Pure | **Is Inspecting** | The player has something in their hands | | Pure | **Get Inspected** | The actor being inspected (the one in the level, not the copy in front of the camera) | | Event | **On Inspect Started** | The player picked something up to look at | | Event | **On Inspect Ended** | The player put it back | | Node | **Submit Code** | The player's machine: sends the digits typed on a keypad to the server | ## ITC Interactable On the thing that is used. | | Name | What it does | |---|---|---| | Setting | **Prompt** | What the prompt shows after the key: "[E] Open". Change it on the server and every player sees it | | Setting | **Enabled** | Off, the key ignores it. Yours to set, on the server; it reaches everyone. The ready pieces never touch it | | Setting | **Options** | More than one thing to do with it: the player picks one with the mouse wheel or the D-pad and the prompt lists them. Empty: the key just uses it. For options that depend on the player, override Get Options | | Setting | **Prompt Offset** | Moves the prompt drawn over the object, in cm, from where Get Prompt Location puts it | | Setting | **Show Marker** | A dot shows on it while a player is near and not looking at it | | Setting | **Range** | How far from the actor a player can use it, in cm. 0: the player's own Interact Range | | Setting | **Parts** | The components of the actor that are this object, by name (a peephole on a door, the wheel on a boat). Reach, sight, aim and the prompt are measured to them. Empty: every solid part of the actor | | Setting | **Use Cooldown Seconds** | Seconds after a use before anyone can use it again: stops a switch flicked ten times a second. 0: no wait | | Setting | **Priority** | When several things are in reach at once, the higher number wins before distance does: a chest behind an NPC still gets the key in Nearest mode, and so does the button on a door over the door itself. 0 for most things | | Setting | **Highlight When Focused** | The player's outline shows on the owner's meshes while they look at it | | Setting | **Required Key Id** | Empty: anyone can use it. Otherwise the player needs this key on their interactor (Add Key, or an ITCKeyPickup) | | Setting | **Required Tags** | The player needs every one of these tags. They come from the pawn, its components (an Ability System Component) and its player state | | Setting | **Blocked Tags** | Any one of these tags on the player and it is not usable for them: stunned, carrying, dead | | Setting | **Consume Key** | The key is used up by the interaction | | Setting | **Hold Seconds** | Seconds the key has to be held before On Interacted fires: a crank, a valve, a repair. 0: one press, like a door | | Setting | **Keep Progress** | Off: letting go starts it over (a crank). On: the progress waits for the next player (a repair) | | Setting | **Required Users** | Players that have to hold it at the same time before anything moves: 2 for a lid too heavy for one | | Setting | **Extra User Speed** | How much faster each player beyond Required Users makes it. 0.5: two players take two thirds of the time | | Setting | **Move To Spot Seconds** | Seconds a player takes to slide to the nearest ITC Use Spot of the actor as they use it. 0: they are put there at once. No Use Spot on the actor: they stay where they are | | Setting | **Use Montage** | Played on the user's skeletal mesh as they use it, on every machine. A hold plays it from the start of the hold | | Setting | **Stop Montage When Hold Ends** | A hold stops Use Montage when it ends. Off: the montage plays out | | Event | **On Hold Progress Changed** | Every machine: the hold bar moved or somebody joined or left it. For a crank, a valve or a progress ring of your own | | Event | **On Interacted** | Server: a player used it (a press, or a hold that filled) and the piece took it. Interactor is their pawn | | Event | **On Interacted Locally** | The machine of the player who used it: at once for a press, when the server says the hold is done for a hold. Open a screen, play a sound | | Event | **On Hold Started** | Server: a player started holding the key on it | | Event | **On Hold Ended** | Server: a player stopped holding it. Completed is false when they let go, walked off or lost the right to use it | | Event | **On Option Interacted** | Server: fires with On Interacted, and says which option the player picked. None for an object with no options | | Event | **On Option Interacted Locally** | The machine of the player who used it: fires with On Interacted Locally, with the option they picked | | Event | **On Refused** | Server: a player tried and was turned down | | Event | **On Refused Locally** | The machine of the player the server turned down. What lets a piece take back what it showed ahead of the server | | Event | **On Focus Changed** | The local player's machine: they started or stopped looking at it | | Event to override | **Can Interact** | Whether this player can use it now. As shipped: Enabled, and the owner's ITC Interaction Condition when it has one. Runs on the server and on the player's machine | | Pure | **Passes Tag Requirements** | Whether this player has every Required Tag and none of the Blocked Tags. True when both are empty | | Pure | **Get Interactor Tags** | The tags this player has: the pawn's, its components' (an Ability System Component) and its player state's | | Event to override | **Get Prompt** | The prompt for this player. As shipped: Prompt | | Event to override | **Get Options** | What this player can do with it. As shipped: Options. Runs on the server and on the player's machine | | Event to override | **Get Prompt Location** | Where the prompt over the object and the dot go, in the world. As shipped: a little above a small object, on the middle of one taller than 140 cm, plus Prompt Offset | | Pure | **Is Usable** | Enabled and Available: the key can see it | | Pure | **Needs Holding** | True when the key has to be held (Hold Seconds above 0, or more than one player needed) | | Pure | **Is Held** | Server: somebody holds the key on it right now | | Pure | **Get Users** | Server: the pawns holding the key on it, in the order they started | | Pure | **Get Hold Option** | Server: the option the first player on a hold picked. A hold is for one option: the others have to pick the same | | Pure | **Get Not Allowed Reason** | Why Interactor may not use it, from the owner's ITC Interaction Condition. Empty when it gave no reason | | Pure | **Get Last Use Time** | Server: when it was last used, in world seconds. What Use Cooldown Seconds counts from | | Node | **Send Now** | Server: the owner's state goes out this frame, waking it if it sleeps on the network. The ready pieces sleep until something changes; a Blueprint child that changes its own replicated variable calls this after. Server only. | | Pure | **Get Times Used** | How many times it was used, on the server | | Pure | **Find Use Spot** | The ITC Use Spot of the actor nearest to Interactor, in the world. False when the actor has none for this interactable | | Node | **Interact** | Server: uses it for Interactor with no questions asked (range, key and Can Interact are skipped). For a script. An AI should use Interact With on its interactor, which checks everything. Server only. | | Node | **Interact With Option** | Server: the same, for one of its options. Server only. | | Node | **Refuse** | Server: turns Interactor down, and their machine hears about it (On Interaction Refused on their interactor). Reason Text, when set, is what their screen shows. Server only. | | Node | **Reset Use** | Server: back to no progress and nobody using it. Server only. | | Pure | **Get Distance From** | The distance range is measured by: from From to the closest point of the owner's solid parts. Trigger volumes do not count | ## ITC Interaction Condition An interface for any actor: a rule that can turn a player down, with a reason. | | Name | What it does | |---|---|---| | Event to override | **Can Interact With** | Runs on the server and on the player's machine. False turns the player down; Out Reason says why | ## ITC Use Spot Where the player slides to before a use. | | Name | What it does | |---|---|---| | Setting | **For Interactable** | Only for the interactable of this name, on an actor with several. None: for all of them | ## ITC Door A ready door: swing or slide, locks, keys, auto close. | | Name | What it does | |---|---|---| | Setting | **Open** | Open in the level, and what Reset Door puts it back to | | Setting | **Locked** | Locked: the key with Key Id opens it, or an Unlock Doors action | | Setting | **Key Id** | The key that unlocks it. None: no key does, only Set Locked (a switch, a keypad) | | Setting | **Consume Key** | The key is used up when it unlocks the door | | Setting | **Can Lock By Hand** | A player with the key can lock it again: closed and unlocked, it offers them Lock as a second option. Needs a Key Id, and Consume Key off (a key used up at the first unlock is not there to lock with) | | Setting | **Opens By Hand** | Off: players can't open or close it by hand, only switches and the like can | | Setting | **Predict On Client** | The player who presses sees the leaf move at once, without waiting for the server; if the server says no, it swings back. Off: it waits | | Pure | **Is Predicting** | True while this machine shows the door ahead of the server | | Pure | **Is Shown Open** | Open as this machine shows it: ahead of the server while predicting | | Setting | **Auto Close Seconds** | Seconds it stays open before closing by itself. 0: it stays open | | Setting | **Motion** | Swing on the hinge, or Slide along Slide Offset | | Setting | **Open Angle** | Degrees the leaf turns when open. Negative swings the other way | | Setting | **Slide Offset** | Where the leaf goes when open, from where it is closed, in the door's own space | | Setting | **Open Seconds** | Seconds from closed to open | | Setting | **Stop At Characters** | The leaf waits where it is while a character stands in its way, and goes on once they step out. Off: it passes through them and the character is pushed out | | Setting | **Stop At Physics Bodies** | The same for a prop that simulates physics (a crate, a barrel): the leaf waits instead of pushing it out. Off as shipped, so a pile of props cannot hold a door open forever | | Setting | **Leaf Model** | A mesh for the leaf instead of the engine cube: 118 cm wide along X, standing on its pivot at the bottom middle. With one set, the frame's three cubes are hidden: bring your own in the wall | | Setting | **Prompt Open** | What the prompt says on a closed door | | Setting | **Prompt Close** | What the prompt says on an open door | | Setting | **Prompt Locked** | What the prompt says on a locked door to a player without the key | | Setting | **Prompt Lock** | The second option of a door with Can Lock By Hand | | Setting | **Prompt Unlock** | While locked, for a player who has the key | | Setting | **Open Sound** | Played at the door on every machine when the state changes. None: silent | | Setting | **Close Sound** | Played on every machine when it starts to close. None: silent | | Setting | **Unlock Sound** | Played on every machine when it is unlocked. None: silent | | Setting | **Locked Sound** | A player tried it locked, without the key | | Node | **Set Open** | Server. A locked door does not open. Server only. | | Node | **Set Locked** | Server: locks or unlocks it without a key (a switch, a keypad). Server only. | | Node | **Reset Door** | Server: back to how the level placed it (open or closed, locked), snapped without a swing. Server only. | | Event to override | **Get Prompt For** | The prompt for this player: Open, Close, Locked, or Unlock when they have the key. Override in a Blueprint child for a prompt of your own | | Event to override | **Get Options For** | What this player can pick: Open and Lock for one with the key at a door with Can Lock By Hand, nothing to pick otherwise. Overridable | | Event to override | **On Used** | Server: what a use does, after the checks. As shipped: locks, unlocks with the key, opens or closes. Override in a Blueprint child to do something else first (a sequence, a sound) and call the parent to go on. Server only. | | Pure | **Get Open Amount** | 0 closed, 1 open: where this machine's leaf is right now | | Event | **On Door State Changed** | Every machine, once per change: opened, closed, locked or unlocked | | Event | **On Locked Try** | Server: a player tried it locked, without the key | | Event | **On Locked Try Shown** | Every machine: somebody tried it locked. For a rattle or a "Locked" on screen. Interactor is only known on the server | | Event to override | **Receive Door State Changed** | Every machine, once per change. For a Blueprint child | ## ITC Switch A ready lever, button or valve. | | Name | What it does | |---|---|---| | Setting | **On** | On in the level, and what Reset Switch puts it back to | | Setting | **Can Switch Off** | Off: once on it stays on (a one-way lever) | | Setting | **Predict On Client** | The player who presses sees it switch at once, without waiting for the server; if the server says no, it goes back. Off: it waits | | Pure | **Is Predicting** | True while this machine shows the switch ahead of the server | | Pure | **Is Shown On** | On as this machine shows it: ahead of the server while predicting | | Setting | **Auto Off Seconds** | Seconds it stays on before going off by itself, running Off Actions: a timed button. 0: it stays on | | Setting | **On Actions** | Run when it is switched on | | Setting | **Off Actions** | Run when it is switched off | | Setting | **Show When On** | Lights (or any actors) that are only there while it is on. Every machine | | Setting | **Hide When On** | And the ones that go away while it is on (a barrier, the emergency lights) | | Setting | **Prompt On** | What the prompt says while it is off | | Setting | **Prompt Off** | What the prompt says while it is on | | Setting | **Off Color** | The light while it is off | | Setting | **On Color** | The light while it is on | | Setting | **Switch Sound** | Played at the switch on every machine when it changes. None: silent | | Node | **Set On** | Server. Interactor may be none (Give Key does nothing then). Server only. | | Node | **Reset Switch** | Server: back to how the level has it, without running any actions. Server only. | | Event | **On Switched** | Every machine, when it changes | | Event to override | **Receive Switched** | Every machine, when it changes. For a Blueprint child | | Event to override | **On Used** | Server: what a use does. As shipped: flips it and runs its actions. Override in a Blueprint child and call the parent to go on. Server only. | ## ITC Keypad A code typed on a screen, checked on the server. | | Name | What it does | |---|---|---| | Setting | **Code** | The digits that open it. Only the server compares, and clients forget it as they load: it is never sent. A code typed here still ships inside the level file, so a player who digs into the game files can find it. For a code nobody can dig out, turn on Random Code On Server and show it in the world from the server (a note, a screen) Digits 0 to 9 only, 12 at most: the screen can type nothing else, so anything more is cut, with a warning | | Setting | **Random Code On Server** | The server picks a new code with as many digits as Code when the level starts. Read Code on the server to show it in the world | | Setting | **Max Wrong Tries Per Minute** | Wrong codes from everyone together in a minute before it locks for everyone, on top of each player's own count. Stops a cheat that rejoins with a new id to start over. 0: no such limit | | Setting | **Max Digits** | How many digits the screen takes. 0: as many as Code has | | Setting | **Wrong Tries Before Lockout** | Wrong codes in a row before it stops taking codes for Lockout Seconds. 0: it never does. What keeps a script from trying all 10,000 | | Setting | **Lockout Seconds** | Seconds it takes no codes after too many wrong ones. Doubles each time it happens again within 10 minutes of the last one | | Setting | **Lockout Per Player** | Each player is locked out alone, so one player typing wrong codes does not shut the keypad for the team. Off: it locks for everyone | | Pure | **Get Lockout Seconds Left** | Server: seconds before Player may type a code again, with Lockout Per Player. 0: they may now. A client hears it as a refusal whose text says the seconds (Get Last Refusal Text on their interactor) | | Setting | **Relock Seconds** | Seconds after it was solved before it locks itself again, running Relock Actions. 0: it stays solved | | Setting | **Solved Actions** | Run when the right code is typed | | Setting | **Wrong Actions** | Run on each wrong code | | Setting | **Relock Actions** | Run when Relock Seconds puts it back to locked | | Setting | **Keypad Widget Class** | The screen with the digits. ITCKeypadWidget builds its own layout; a Blueprint child draws yours | | Setting | **Locked Color** | The light while it waits for the code | | Setting | **Solved Color** | The light once it is solved | | Setting | **Solved Sound** | Played at the keypad on every machine. None: silent | | Setting | **Wrong Sound** | Played on every machine for a wrong code. None: silent | | Pure | **Get Digit Count** | How many digits the screen takes. Comes from the server: a client does not have the code to count them | | Node | **Set Code** | Server: a new code. The screens learn its length, never its digits. Server only. | | Node | **Try Code** | Server: a player typed Typed. True when it was the code. Server only. | | Node | **Reset Keypad** | Server: locked again, without running any actions. Server only. | | Event | **On Code Tried** | Server: right after a code was typed | | Event | **On Solved Changed** | Every machine: solved, or locked again | | Event | **On Wrong Code** | Every machine: a wrong code was typed | ## ITC Code Display Shows a number one player reads out. | | Name | What it does | |---|---|---| | Setting | **Options** | The number is one of 1 to this: put that many levers | | Setting | **Change Seconds** | Seconds before the number changes by itself. 0: it only changes after a wrong lever | | Setting | **Wrong Pull Wait Seconds** | Seconds no lever counts after a wrong pull. Without it a player pulling one lever over and over hits the number by luck in a second | | Setting | **Solved Actions** | Run when the right lever is pulled | | Setting | **Wrong Actions** | Run when a wrong lever is pulled | | Setting | **Glow Color** | The glow's colour while the number is up, and once its lever was found | | Setting | **Solved Color** | The colour of the number once it is solved | | Setting | **Solved Text** | What the screen says once solved | | Node | **Try Code** | Server: a lever of this screen was pulled. True when it was the right one. Server only. | | Node | **Reset Code** | Server: unsolved again, with a fresh number. Server only. | | Event | **On Code Tried** | Server: right after one of its levers was pulled | ## ITC Code Lever The levers the other player pulls. | | Name | What it does | |---|---|---| | Setting | **Display** | The screen it answers. Pick it in the level | | Setting | **Number** | The number this lever stands for: pulling it while the display shows it solves the display | | Setting | **Prompt Format** | "Pull lever {0}" | ## ITC Pickup A key or an item for your inventory. | | Name | What it does | |---|---|---| | Setting | **Key Id** | The key the player gets: the Key Id of a door, or the Required Key Id of an interactable. None: no key, an item only | | Setting | **Item Id** | The item your inventory gets, by your own id (a row name, a tag name). Handed over in Give To Player and On Picked Up | | Setting | **Count** | How many of Item Id | | Event to override | **Give To Player** | Server: hands it to the player. Override it to put Item Id into your inventory, and return false when the inventory is full: the pickup stays where it is and the player is told no. The default gives Key Id. Server only. | | Setting | **Respawn Seconds** | Seconds before it is back for the next player. 0: taken once | | Setting | **Picked Up Actions** | Run when it is taken | | Setting | **Pick Up Sound** | Played where it was on every machine. None: silent | | Node | **Reset Pickup** | Server: back where it was placed. Server only. | | Event | **On Picked Up** | Server: a player took it, with what they got | ## ITC Chest Opens, gives what is inside to the player, closes. | | Name | What it does | |---|---|---| | Setting | **Item Id** | The item inside, by your own id. Handed over in Give To Player and On Looted. None with no Key Id: an empty chest | | Setting | **Count** | How many of Item Id | | Setting | **Key Id** | A key inside, for the doors and switches that ask for it. None: no key | | Setting | **Refill Seconds** | Seconds after it is emptied before it holds Item Id again. 0: emptied for good | | Setting | **Can Close** | Open and emptied, the key closes it again. Off: it stays open | | Setting | **Looted Actions** | Run when a player takes what is inside | | Setting | **Prompt Open** | What the prompt says on a closed chest | | Setting | **Prompt Take** | What the prompt says on an open chest with something inside | | Setting | **Prompt Close** | What the prompt says on an open, empty chest | | Setting | **Lid Sound** | Played on every machine when it opens or closes. None: silent | | Setting | **Loot Sound** | Played on every machine when it is emptied. None: silent | | Event to override | **Give To Player** | Server: hands what is inside to the player. Override it to put Item Id into your inventory, and return false when the inventory is full: it stays inside and the player is told no. The default gives Key Id. Server only. | | Node | **Reset Chest** | Server: closed and full again, as the level placed it. Server only. | | Event | **On Looted** | Server: a player took what was inside, with what they got | ## ITC Pressure Plate Pressed while pawns stand on it. | | Name | What it does | |---|---|---| | Setting | **Required Pawns** | Pawns that have to stand on it at the same time | | Setting | **Players Only** | Only pawns a player controls count. Off: an AI walking over it presses it too | | Setting | **Stay Pressed** | Once pressed it stays down for good, whoever steps off | | Setting | **Pressed Actions** | Run when enough pawns stand on it | | Setting | **Released Actions** | Run when they step off | | Node | **Reset Plate** | Server: up again, whatever stands on it is counted afresh. Server only. | | Event | **On Pressed Changed** | Every machine, when it goes down or comes up | ## ITC Inspectable component What makes any actor inspectable. | | Name | What it does | |---|---|---| | Setting | **Item Name** | Shown under the object while it is in the player's hands | | Setting | **Description** | The text under the name while it is inspected | | Setting | **Put Back Prompt** | The prompt while it is in the player's hands | ## ITC Moving Part The handle of a lever, the wheel of a valve. | | Name | What it does | |---|---|---| | Setting | **On Rotation** | Turn from where it is placed, once it is on (a lever: pitch -60) | | Setting | **On Offset** | Move from where it is placed, once it is on (a button: 2 cm in) | | Setting | **Move Seconds** | Seconds to get from off to on, and back | | Setting | **Spin While Used** | Degrees a second it turns while players hold the key on its actor (a crank). Each helper turns it faster | | Setting | **Follow Progress** | Go from off to on with the hold progress of the actor's interactable instead (a valve wheel, a pressure needle) | | Node | **Set On** | Each machine: on or off. Snap skips the move (a thing placed already on) | | Pure | **Is On** | Shown in the on position | ## Actions One entry of an action list (On Actions, Solved Actions and the others). | | Name | What it does | |---|---|---| | Setting | **Type** | What happens. Each type says in its tooltip what Targets it takes | | Setting | **Delay** | Seconds to wait before it happens, to string a few together (the light goes out, then the door slams) | | Setting | **Targets** | What to act on, or where to spawn. Pick them in the level | | Setting | **Key Id** | Give Key: the key the player gets | | Setting | **Class** | Spawn Actor: what to spawn | | Setting | **Slot Name** | Save Game and Load Game: the save slot, user index 0 | ## Action library Run action lists from any graph. | | Name | What it does | |---|---|---| | Node | **Run Actions** | Server: makes Actions happen at Source. Interactor is the pawn that caused it (Give Key needs one, the rest ignore it). Call Off Waiting: what Source started before and still waits out its Delay is called off first, so a timed door switched again starts its countdown over. Off when you run two lists from the same Source for one event | | Node | **Run Action** | Server: one action, now, whatever its Delay says | | Node | **Cancel Delayed Actions** | Server: calls off the actions Source started that are still waiting out their Delay. Loading a save does it | | Node | **Show Actors** | Every machine: shows or hides Actors, their collision and their lights (a hidden light actor goes on shining) | ## Save library Save and load, server only. | | Name | What it does | |---|---|---| | Node | **Capture State** | Server: the state of every saved actor in the world, to keep in your own save game | | Node | **Apply State** | Server: writes State back on the actors it was taken from and tells each one (State Loaded). Returns how many were found. Called during BeginPlay it waits for every actor to begin, and returns 0 | | Pure | **Get Player Save Id** | The id a player's keys are saved under: what their Player State says (ITC Saved Player), a platform online id, or their seat in the game (host 0) | | Node | **Save To Slot** | Server: Capture State straight to a save slot | | Node | **Save To Slot Async** | Server: Save To Slot with the file written on another thread, for a big world that would hitch. On Done says how it went | | Node | **Load From Slot** | Server: Apply State straight from a save slot. False when the slot has none | | Node | **Load From Slot Async** | Server: Load From Slot with the file read on another thread. The state goes on when it is read, and On Done says how it went | | Node | **Open Level And Load From Slot** | Server: opens Level fresh (this map when empty) and loads the slot on it when it begins play. The way to load a game in play: a load on the running map cannot bring back an actor destroyed since. With players connected the server travels and takes them along. False when the slot has none | ## ITC Saved Actor The interface that puts your own actor in the save. | | Name | What it does | |---|---|---| | Event to override | **State Loaded** | Server: the saved variables were just written back. Make the actor look and behave like them, without the sounds of a change | ## ITC Prompt Widget The prompt, the dots and the inspect text. Make a Blueprint child for your look. | | Name | What it does | |---|---|---| | Setting | **Prompt Style** | The look of the layout built here. A Blueprint child that designs its own widgets ignores it | | Setting | **Accent Color** | The colour of the picked option and of the key's outline in the Minimal style | | Setting | **Key Icons** | Pictures for the keys. None: every key is written out | | Setting | **Marker Size** | The dots, in pixels | | Setting | **Marker Color** | The colour of the dots on what is usable nearby | | Setting | **Edge Margin** | The prompt over an object never gets closer than this to the edge of the screen, in pixels | | Node | **Set Interactor** | The interactor whose focus this widget draws | | Pure | **Get Interactor** | The interactor whose focus this widget draws | | Pure | **Get Key Label** | What to write for a key: "E", "X" for the left face button, "LMB" | | Event to override | **Receive Prompt Updated** | After the widgets were filled in for this frame: for a Blueprint child that draws more | ## ITC Key Icon Set Pictures for keys and buttons in the prompt. | | Name | What it does | |---|---|---| | Setting | **Icons** | A picture per key or button. A key with none shows its name in a box | ## Behavior Tree: ITC Interact Task. Presses or holds the actor in a blackboard key. | | Name | What it does | |---|---|---| | Setting | **Target Key** | The actor to use | | Setting | **Interactable Name** | Which interactable of the actor, on one with several. None: the first | | Setting | **Option** | The option to pick, on an object with several. None: the first it offers | | Setting | **Give Up Seconds** | A hold that has not filled after this many seconds is let go, and the task fails (a lid that needs two). 0: never | ## Interact And Wait Async node for a Blueprint AI or a script. | | Name | What it does | |---|---|---| | Node | **Interact And Wait** | Pawn Or Controller: the one with the interactor (an AI controller works). Target Actor: what to use. Interactable Name and Option: None picks the first. Give Up Seconds: lets go of a hold that has not filled, 0 waits for good. Server only. | | Event | **On Succeeded** | The press went through, or the hold filled | | Event | **On Failed** | Refused, let go of, or Give Up Seconds passed | | Node | **Cancel** | Lets go of the hold and ends the node without either pin | ## ITC Interact Ability The Gameplay Ability (InteractcraftGAS module). | | Name | What it does | |---|---|---| | Pure | **Get Interactor** | The interactor this ability drives, on the avatar or on the owner | | Event to override | **On Interaction Done** | Called when the use ends. Succeeded: pressed, or the hold filled. Override to react without binding events | ## ITC Example Character The demo player. | | Name | What it does | |---|---|---| | Setting | **Body Mesh** | The body other players see, and the one a use montage plays on. The demo uses Epic's mannequin from /Interactcraft/Demo/Epic; with the folder deleted it falls back to the cylinder | | Setting | **Body Animation** | The Animation Blueprint of Body Mesh | | Setting | **Stick Look Speed** | Degrees a second the right stick turns the view | ## ITC Example Worker The demo AI. | | Name | What it does | |---|---|---| | Setting | **Targets** | What it uses, in order, round and round | | Setting | **Wait Seconds** | Seconds it stands still after each use | ## ITC Example Focus Zone The Nearest room of the demo. | | Name | What it does | |---|---|---| | Setting | **Focus Mode Inside** | The mode a player inside gets |