Jump to content
  • 0

Properly setting thing's gravity to 0 and then back to something positive [UDMF]


Arwel

Question

I have a scroller/carrier and a floating powerup with gravity set to 0 (so that it doesn't fall immediately). Then when I press a switch a script is triggered where I set its gravity to 7.5 For some reason, it doesn't fall! I can set it's velocity programmatically which would be a fine workaround, but it doesn't interact with conveyor belt either when its gravity was 0 initially. Any ideas how to make this work?

Edited by Vrhrlv

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

Got some help on Discord!

Turns out I also needed to remove "NOGRAVITY" flag (which, I assume, was set behind the scenes automatically by Slade).

 

SetActorFlag(tid, "NOGRAVITY", FALSE);

 

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...