Jump to content

Dutch

Members
  • Posts

    36
  • Joined

Posts posted by Dutch

  1. 24 minutes ago, jandd661 said:

    Name: Target of Target and Clear Target 
    Version: BETA 
    By: 1stGenGamer 
    Note: If you have any problems or issues please send me a message in the Atavsim discord. Please understand that I'm sharing this because it may be useful for someone. It may all break with a Atavsim update.

    This package was built and tested in in Unity v2019.2 with Atavsim 10.1

    Package includes:

    Prefab of ToT frame - I made it in the UI of the MainWorld scene of Atavsim 10.1.

    Target Deselect script ClearTarget.cs
    -------------------------------------
    Tweeks the default targeting behavior to deselect the target based on distance and if you click off the target. Similar to WoW. Atavism currently does not restrict the targeting distance. So a known issue is, if the player clicks on a target beyond the scripts max target distance, the target frame will briefly appear then disappear.

    Place ClearTarget.cs on all your character prefabs in Assets/Resources. Your in the right place if you see "Atavism Mecanim Mob Controller 3D" script component.

    "Enable" turn it on and off. This is publicly available FirstGenMods.ClearTarget.Enable {get; set;}
    "Max Retain Target Distance" is the distance you can go from the target without loosing the target. Default is 30.
    "Targetable Layer Number" is the layer id of targetable objects. You can get this by expanding the "Layer" dropdown at the top of the inspector. Default is 8.

    Target of Target (ToT) script TargetOfTarget.cs
    -----------------------------------------------
    Adds ToT functionality.  Currently does not display pet's target. For an example set up, see the Target of Target Frame prefab in the prefab folder.

    This should be on a transparent Image object/container. Your ToT frame should be a chield of that frame. Look at the prefab in the Prefab folder for an example. You may be able to drop the prefab on to your Canvas at it will just work.

    "Enable" turn it on and off. This is publicly available FirstGenMods.TargetOfTarget.Enable {get; set;}
    "Frame Position" The Rec Pos X and Pos Y the frame will move to when loaded. Once set, you can drag it somewhere in the editor so you can work on it.
    "Dead Property Name" the name of the target property that indicates dead. Default is "deadstate" (no quotes).
    "Target Of Target Frame" Reference to the child ToT frame.
    "Name, Description, Species, Level" TextMeshPro text objects.
    "Default Sprite" Sprite used for the portrait if the target one can't be found.
    "Portrait Image" The Image object used to display the portrait.
    "Level Property Name" the name of the target property that indicates it's level. Default is "level" (no quotes).
    "Current Health Property Name" the name of the target property that indicates it's current health. Default is "health" (no quotes).
    "Max Health Property Name" the name of the target property that indicates it's max health. Default is "health-max" (no quotes).
    "Health Text" the TextMeshPro text object used to display the health numbers.
    "Fill Image" Image object with slider used to display the health bar.

    Download: https://drive.google.com/open?id=11W_pnLlTOed4haDvw3KO25eIdF3a5TXT

    Thanks for the share! :)

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.