Invector save support.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
maximuz24
Posts: 18
Joined: Fri Apr 03, 2020 2:16 pm

Invector save support.

Post 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.
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Invector save support.

Post 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)​
Post Reply