So I am trying to make a gun game mod, but some weapons like the carcano modello and karabiner 98 kurz don’t spawn with scopes when I add a level with that rifle with a scope mount. help pls
Find gun_game_mode_logic
entity. And find level that have rifle that can have mods.
After that click to +
that in one of levels property:
You need add additionalWeapInfo
as array
in gun game level:
And then click to +
that near additionalWeapInfo
:
Select object
and add value. And click to plus that near additionalWeapInfo
, but with object type:
And gunMods
as object
type:
And then add scope
(or bayonet
or grenade_launcher
) as text
in gunMods
:
And then just write scope/bayonet/grande_launcher that can be used on this weapon.
If mods can’t be used on this weapon then you will not get mods and game will prints error and mods that you can add.
To know what gun mods weapon you need to spawn it and check property gun_mods__slots
:
(Stalingrad Kar98k).
But it shows only scope
/bayonet
mods.
For grenade_launcher
you need check weapon name:
If it doesn’t work and you use only selectedSessionWeapon
then…
After that click to +
that in one of levels property:
And add selectedAdditionalInfo
as object
. After that add gunMods
and scope
/bayonet
/grenade_launcher
. After that it should work.
I cannot find the gun mods slots in any of the weapons
This property only in weapons that can have bayonet or scope.
Weapons with grenade launcher don’t have this property.
UPD: Oh. Seems it’s outdated property. And now not real info about modifications.
Well… Then set any name and check to console. It should prints correct modification.
Thx, how do I open the console?
Press to `
or ~
in keyboard.
Thanks