ZakBlystone / gmod_blueprints

Blueprint Editor for Garry's Mod (Visual Programming)
GNU General Public License v3.0
59 stars 9 forks source link

Weapons stuff missing #90

Closed UltraBlackLinux closed 2 years ago

UltraBlackLinux commented 2 years ago

Hey there, I noticed that this is missing from the node menu - Why is that? Am I misunderstanding some of the fundamental concepts of this addon? Thanks!

ZakBlystone commented 2 years ago

There are a few functions in gmod Lua that don't map neatly into Blueprint's strictly-typed ecosystem. The weapons.* functions mostly return generic tables of functions and variables. But Blueprint has no way of determining the types of the table fields.

If there is some specific way you want to use these functions, I'm sure I can figure something out for ya.

ZakBlystone commented 2 years ago

I figured out a solution. I've created a struct for the SWEP data. You should be able to use weapons.Get and weapons.GetList now.

Let me know if you need something more than that.

UltraBlackLinux commented 2 years ago

This is actually perfect and all that I've been trying to get! Thank you so much!