User Tools

Site Tools


building:placeables:transportable

This is an old revision of the document!


Transportable Placeables System

This system make it so that when an item is dropped, it creates a placeable base on variables set on the item and it is possible to grab back the object by using the player tool. The object don't need to be useable as you can target the ground with your player tool and it let you select an object close to the targeted location. The placeables created by this system are persistent (they remain there after a reset, until someone destroy them or pick them up).

How To

  1. Create the placeable blueprint
  2. Create the item blueprint
  3. Add the following variables on the item:
    Varaible NameVariable TypeVariable ValueRequired or Optional
    EVENT_UNACQUIREStringtps_ev_unacqitemRequired
    TPS_PLC_RESREFStringResRef of the placeableRequired
    TPS_NAMEStringoverride the name of the palceable (and item)Optional
    TPS_DESCRIPTIONStringoverride the description of the placeable (and item)Optional
    TPS_PLC_APPEARANCEIntegeroverride the appearance of the placeableOptional
    TPS_MAX_HPIntegeroverride the max hit points of the placeableOptional
    TPS_HARDNESSIntegeroverride the hardness of the placeableOptional
    TPS_PLACED_SCRIPTStringscript to run when the placeable is createdOptional
    TPS_FLAGSIntegersum of all options that you want to activate:
    1: PCs can rename the placeable
    2: PCS can change the description of the placeable
    4: Only the PC that dropped the placeable can manipulate it (grab it, move it, rename it….) - Transportable placeables with this flag shouln't be sold in stores

    For example, if you set the variable to 7, all the options above will be activated. If you set it to 4, it wont be possible to change the description of the item or rename it and only the owner of the item will be able to move it and grab it back.
    Optional
building/placeables/transportable.1554325690.txt.gz · Last modified: 2019/04/03 21:08 by Mavrixio

phpBB Appliance - Powered by TurnKey Linux