How to make guns not use ammo?

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
barronvonburp
Posts: 30
Joined: Mon Jul 13, 2015 7:41 am

How to make guns not use ammo?

Post by barronvonburp »

Make a weapon not require ammo, without the player having to input anything into their console.
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: How to make guns not use ammo?

Post by minmay »

in the FirearmAttackComponent set these fields:

Code: Select all

loadedCount = math.huge,
clipSize = math.huge,
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
barronvonburp
Posts: 30
Joined: Mon Jul 13, 2015 7:41 am

Re: How to make guns not use ammo?

Post by barronvonburp »

I tried setting the ammobox to math.huge and working my way from there.
It didn't work. It only gave 1 pellet.
Anywho that worked, thanks.
Post Reply