HUD Object

Hot to attach a world object to the player's HUD?

There is an option to attach world objects to the player's HUD. HUD collision and FOV will be processed properly.

How to:

  • An object must be of the HUD object type (inherited from the entity type). You can create your own object type in entities.lua. E.g.: 


 maggot_hud_object
maggot_hud_object = create_section {
__bases = {"_G.config.entity.hud_object"},
__edit = create_section {
can_be_added = true,
obsolete = false,
caption = "player\\HUD\\maggot hud object",
},
active_holder_attp = "loc_wpn_base",
holder_attp = "loc_wpn_base",
},
  • An object will be attached to the player's locator defined in the holder_attp property.
  • An object will be attached by its locator defined in the item_attp property.
  • To attach an object to the player, use the take item node.
  • Activate the hud item controller node for it to work as a HUD object.
  • To detach the object, use the purge slot node. Set the Slot property to hud_object_slot. Attach a ref to the destination point, to the destination pin.
  • IMPORTANT: After the detaching, it is necessary to disable the useful for player property. To do so, use the useful for player node with the parameter Useful? = False.

  • Don't forget to deactivate hud item controller.



Exodus SDK © 2005-2023, 4A Games Limited. Developed by 4A Games®.
4A Games® is a registered trademark, and 4A Games Limited, Exodus SDK and their respective logos are trademarks of 4A Games Limited.
Published by Deep Silver. Deep Silver is a division of PLAION GmbH, Austria. Deep Silver and Plaion are registered trademarks of PLAION GmbH.
Metro Exodus is inspired by the internationally best-selling novels METRO 2033 and METRO 2034 by Dmitry Glukhovsky.
All other trademarks, logos and copyrights are property of their respective owners. All rights reserved.
By using this site, downloading or using the Exodus SDK or related content, you are agreeing to be bound by the terms of the End User License Agreement.


EULA