Page 1 of 1

Invector save support.

Posted: Sat Nov 21, 2020 5:27 am
by maximuz24
Hope its not related to your asset but maybe you can help. i am using invector shooter template and dialogue system is it possible to select a weapon by the player and load the weapon when start using save and playmaker. I am not a programmer.

Re: Invector save support.

Posted: Sat Nov 21, 2020 9:22 am
by Tony Li
Hi,

You should be able to do that. You don't need to use PlayMaker.
  • Set up your project according to the Invector Support steps.
  • Identify the item ID number of the weapon. For example, using the Invector demo items, the Sword is item ID 3.
  • Add a Dialogue System Trigger to the scene. Set it to OnStart.
  • Select Add Action > Run Lua Code. Use the vAddItemByID() Lua function in the Lua Code field. Something like this to add and auto-equip the sword:

    Code: Select all

    vAddItemByID(3, 1, true)​