Forums
Games
Cyberpunk 2077 Thronebreaker: The Witcher Tales GWENT®: The Witcher Card Game The Witcher 3: Wild Hunt The Witcher 2: Assassins of Kings The Witcher The Witcher Adventure Game
Jobs Store Support Log in Register
Forums - CD PROJEKT RED
Menu
Forums - CD PROJEKT RED
  • Hot Topics
  • NEWS
  • GENERAL
    THE WITCHER ADVENTURE GAME
  • STORY
    THE WITCHER THE WITCHER 2 THE WITCHER 3 THE WITCHER TALES
  • GAMEPLAY
    THE WITCHER THE WITCHER 2 THE WITCHER 3 MODS (THE WITCHER) MODS (THE WITCHER 2) MODS (THE WITCHER 3)
  • TECHNICAL
    THE WITCHER THE WITCHER 2 (PC) THE WITCHER 2 (XBOX) THE WITCHER 3 (PC) THE WITCHER 3 (PLAYSTATION) THE WITCHER 3 (XBOX) THE WITCHER 3 (SWITCH)
  • COMMUNITY
    FAN ART (THE WITCHER UNIVERSE) FAN ART (CYBERPUNK UNIVERSE) OTHER GAMES
  • RED Tracker
    The Witcher Series Cyberpunk GWENT
THE WITCHER
THE WITCHER 2
THE WITCHER 3
MODS (THE WITCHER)
MODS (THE WITCHER 2)
MODS (THE WITCHER 3)
Menu

Register

NPC actionpoints with items

+
I

ih8soup

Forum regular
#1
Aug 5, 2013
NPC actionpoints with items

when you add an npc to the world via action point how do you get them to use an item with it? for example my npc is grabbing an invisible log and carrying it and stacking it onto a pile of invisible logs. how do i make him carry a visible log?
 
B

B4N4N

CD PROJEKT RED
#2
Aug 5, 2013
You should open NPC entity and go to Inventory tab. Then add item (+). Example below:
View attachment 257
 

Attachments

  • items.jpg
    items.jpg
    14.8 KB Views: 10
  • items.JPG
    items.JPG
    56.3 KB Views: 15
I

ih8soup

Forum regular
#3
Aug 5, 2013
i did as you said but with work instead of steel sword and added piece of wood for the inventory but it isnt working. I added CInventoryComponent0 to the the gather wood action point but it didnt do anything. do i have to link them? and if so what link do i use?
 
I

ih8soup

Forum regular
#4
Aug 5, 2013
strangely the stand and throw wood into fire action point works. the npc picks up a log you can actually see, and throws it and it lies on the ground where it landed for a few seconds and disappears. i copied the exact mesh setup using the inventory items and the gather wood is still invisible
 
Benzenzimmern

Benzenzimmern

CD PROJEKT RED
#5
Aug 5, 2013
The gather wood animation does not use any item as far as I know. Adding items works for using a broom (altough I think it also works without adding) or using a sword (for training as an example). You also have need to assign "npc" items to the npcs. They don't use Geralts sword as an example.
 
S

shak-otay

Senior user
#6
Aug 5, 2013
ih8soup said:
strangely the stand and throw wood into fire action point works. the npc picks up a log you can actually see, and throws it and it lies on the ground where it landed for a few seconds and disappears. i copied the exact mesh setup using the inventory items and the gather wood is still invisible
Click to expand...
Don't know what you mean with "mesh setup", but I used a citizen_craftman_12 with a stand throw wood to fire actionpoint and as you said the log can be seen.

But the craftsman does not have a log in his inventory.

edit: upps. well, while testing this Benze already posted.:rolleyes:
 
Last edited: Aug 5, 2013
I

ih8soup

Forum regular
#7
Aug 5, 2013
i have been trying for hours to figure it out and its still bugging me that i cant get it to work. try it yourself - add the action point gather wood and you will see what i mean. the animation works fine but the npc doesn't actually create a log and just walks holding air in his arms. whereas when you do say the throw wood into fire action point it works without you having to change anything about it. the npc will create a log and throw it on the ground without you adding anything to the inventory of the npc
 
S

shak-otay

Senior user
#8
Aug 5, 2013
ih8soup said:
try it yourself - add the action point gather wood and you will see what i mean. the animation works fine but the npc doesn't actually create a log and just walks holding air in his arms.
Click to expand...
upps, seems you misunderstood me. I didn't deny this. As Benze said: the gather wood animation seems to be buggy.

whereas when you do say the throw wood into fire action point it works without you having to change anything about it. the npc will create a log and throw it on the ground without you adding anything to the inventory of the npc
Click to expand...
This is true, isn't it? The only thing I wanted to point out is that (imho) adding items to npc inventories does not make them appear during animations performed by the npc.

There is a category work_portable for inventory items and there are items like Box_to_carry or Broom but someone has to figure out how to use this.

edit: as far as I can see there are only two npcs who use the category work_portable in their inventory:
it's the binduga_fisherman_basket (Fishing_basket) and the vergen_crowd_dwarf_03 (Pickaxe).

So as a test one could replace the Fishing_basket by Box_to_carry and see what happens.
 
Last edited: Aug 6, 2013
Share:
Facebook Twitter Reddit Pinterest Tumblr WhatsApp Email Link
  • English
    English Polski (Polish) Deutsch (German) Русский (Russian) Français (French) Português brasileiro (Brazilian Portuguese) Italiano (Italian) 日本語 (Japanese) Español (Spanish)

STAY CONNECTED

Facebook Twitter YouTube
CDProjekt RED Mature 17+
  • Contact administration
  • User agreement
  • Privacy policy
  • Cookie policy
  • Press Center
© 2018 CD PROJEKT S.A. ALL RIGHTS RESERVED

The Witcher® is a trademark of CD PROJEKT S. A. The Witcher game © CD PROJEKT S. A. All rights reserved. The Witcher game is based on the prose of Andrzej Sapkowski. All other copyrights and trademarks are the property of their respective owners.

Forum software by XenForo® © 2010-2020 XenForo Ltd.