Jump to content
  • 0

What to use for a flag argument if there are no flags needed?


DiR

Question

Some weapon functions have certain arguments that require flags, such as A_CustomPunch, but some of the features are not relevant to the weapon I'm making, so it doesn't require any of the flags listed on the wiki, but what do I put in the slot if there is none? Same goes for the armorbonustype string needed in the same function.

 

So far I've just been typing in "null" and it runs properly but shows an error in the console. I think there's a proper way to declare no flags/stringtypes but I haven't been able to find it on the wiki. It would help with the debug process if I could properly fix all of these benign errors.

 

I hope someone else knows what I could do.

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0
4 minutes ago, Tartlman said:

0 reads as "no flags", because the flags argument is actually an integer.

Thank you so much! Zero would've literally been the last thing I would've tried tbh

Share this post


Link to post
  • 0
38 minutes ago, Tartlman said:

0 reads as "no flags", because the flags argument is actually an integer.

It fixes the issue for flags, but what about things that aren't flags? such as the BasicArmorBonus class for the CustomPunch function.

image_2021-01-06_024137.png

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...