2 months ago

For some reason ClassDB.class_get_property() isn't working. Can someone help bugfix my code?


Here's my code:

func update_attachments():

var i: int = 0

for attachment in [stock]:

i += 1

for stat in ['fire_rate','bounces','reload_time','mag_size','inaccuracy','bullet_speed']:

# Modify stats.

ClassDB.class_set_property(self,stat,ClassDB.class_get_property(self,stat) + attachment.modifications[stat])

match i:

1:

quot;rotation_helper/Camera3D/Pistol Base/Stock".mesh = load(attachment.model)

attachment is a custom resource with a dictionary dictating stat changes made by the attachment. All the keys are variables in the Player script. No idea why it's returning nil.



0 comments

Loading...

Next up

so i made a catgirl harem bot lmao click the link to have your house filled with eight foot tall catgirls https://character.ai/chat/SNo7qd87OI3At_vSMOyioFQrjg61qLDATRpaaR…

found this gem on r/programmerHumor

It is my mapmaking tool called 'Canvas of Kings'.

#godotengine #indiegame #dnd

i still exist bitches

Friday (09/02/2024) at 6PM UTC+1, I'll be playing YOUR game!

🎮 Any game at any stage with a playable build 🤏 I'll play 4-5 games max 💼 It MUST be SFW as it will be streamed on Twitch and YT

📃 Use the form to register https://forms.gle/rDcPD8qxcRZJJ7wH7

bro actually sent me the entire fucking animation to prove me wrong

here's programming in a nutshell for you

Just finished up our new start menu for Sprites Honor!

(A game about fairies, scouts, and farming)

DEMO COMING THIS WEEK!

im almost scared to see the replies mostly bc i dont think there will be any lmao