Interactable Actors: Difference between revisions

From PSwiki
Jump to navigation Jump to search
Created page with " You can create actors the player can interact with, there are already some predefined templates: * door * doubledoor * sliding door * light * particle Each one has one stati..."
 
No edit summary
Line 1: Line 1:


You can create actors the player can interact with, there are already some predefined templates:
You can create actors the player can interact with, there are already some predefined templates:
* door
* door (has 3 states, closed, open inside, open outside, and cycles between these states)
* doubledoor
* doubledoor (same as door above, but with two meshes, left and right door)
* sliding door
* sliding door (represents a gate or secret passage, can slide up, down, left or right)
* light
* light (a mesh with a point light, you can change color, and all other light parameters)
* particle
* particle (a mesh with a particle, can be used for example as a brazier with fire particle on and off, or a faucet with water pouring down or off)


Each one has one static mesh (mandatory), which will be activated by the player. MUST be visible and collision query enabled.
Each one has one static mesh (mandatory), which will be activated by the player. MUST be visible and collision query enabled.

Revision as of 00:24, 30 October 2020

You can create actors the player can interact with, there are already some predefined templates:

  • door (has 3 states, closed, open inside, open outside, and cycles between these states)
  • doubledoor (same as door above, but with two meshes, left and right door)
  • sliding door (represents a gate or secret passage, can slide up, down, left or right)
  • light (a mesh with a point light, you can change color, and all other light parameters)
  • particle (a mesh with a particle, can be used for example as a brazier with fire particle on and off, or a faucet with water pouring down or off)

Each one has one static mesh (mandatory), which will be activated by the player. MUST be visible and collision query enabled.

To create a new actor in a level follow the steps below:

  • Choose the type of actor, example door
  • right-click on the InteractableDoor template and choose "create child"
  • name your child, example : DelverHouseDoor
  • Open it and change the mesh if needed, you can change position, scale, rotation, materials. You cannot delete the nodes on the left tree
  • Check the properties and depending on the object you will have the ability to set:
    • Sound on Toggle
    • Interact Distance (distance between the CENTER of the actor and the player to allow him to interact)
    • Direction and Move Distance (only for sliding doors)