how do i spawn an inventory item

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
ebenguy
Posts: 1
Joined: Sun Nov 30, 2014 8:36 am

how do i spawn an inventory item

Post by ebenguy »

i've had 4 blow-darts "disappear" on me (they're nowhere to be found after firing them) and i'd like to add them back to my inventory. i'm not interested in playing a mod at this stage--i just want to restore the darts and play on in the regular game.

is this possible? if it is, can someone provide me with some instructions?

thanks :)
User avatar
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

Re: how do i spawn an inventory item

Post by JKos »

Enable console from Documents\Almost Human\Legend of Grimrock 2\grimrock.cfg
modify console = false to console = true

then in game press § (or ~ depending of your keyboard layout) to open the console and type
spawn('dart').item:setStackSize(4)
- LoG Framework 2http://sites.google.com/site/jkoslog2 Define hooks in runtime by entity.name or entity.id + multiple hooks support.
- cloneObject viewtopic.php?f=22&t=8450
Post Reply