Jump to content
  • 0

Ceiling actor not rising with ceiling...


Doom-X-Machina

Question

Hey all...

Got an actor that's not doing what I want it to do... wondering if anyone can help?

Actor appears and operates fine except that it doesn't rise with the ceiling sector it's in. I want it to rise with the ceiling.
Is it a DECORATE flag i'm missing?


ACTOR BIGSPIKEDOWN 21017
{
//$Category 3D Models
  //$Title "Big Spike - Down"
 
   Radius 8
   Height 128        
    +SOLID
    +SPAWNCEILING

States
{
Spawn:
    3DMF A -1
    Stop
}
}

 

 

...

 

HALP... lol

Share this post


Link to post

6 answers to this question

Recommended Posts

  • 0

The thing about spawn ceiling is that it does just that. Spawns an actor on the ceiling, nothing else, and there’s unfortunately nothing in Decorate (that I know of) that can solve this issue.

 

However, if you’re willing to learn ACS, you can make a script that can check for this actor and manually adjust it every frame. I’m not great with ACS, so I can’t help you there.

 

Alternatively, if you’re willing to move your decorate code to ZScript (will take a few steps if possible, but pretty easy) I can provide you a snippet of code that can move the actor for you.

Share this post


Link to post
  • 0

Maybe something like this? I'm not sure how smooth it would look though 🙂

 

ACTOR BIGSPIKEDOWN 21017
{
//$Category 3D Models
  //$Title "Big Spike - Down"
 
   Radius 8
   Height 128        
    +SOLID
    +SPAWNCEILING
    +NOGRAVITY
States
{
Spawn:
    3DMF A 1 A_ChangeVelocity(0, 0, 100, CVF_REPLACE)
    Loop
}
} 

 

Edited by JaySmithen

Share this post


Link to post
  • 0
36 minutes ago, JaySmithen said:

Maybe something like this? I'm not sure how smooth it would look though 🙂

 


ACTOR BIGSPIKEDOWN 21017
{
//$Category 3D Models
  //$Title "Big Spike - Down"
 
   Radius 8
   Height 128        
    +SOLID
    +SPAWNCEILING
    +NOGRAVITY
States
{
Spawn:
    3DMF A 1 A_ChangeVelocity(0, 0, 100, CVF_REPLACE)
    Loop
}
} 

 


That worked a charm!! Thankyou a ton for that!!
I looked more into 'A_ChangeVelocity' on ZDoom wiki and I see and understand how that works now :)

Again, thankyou heaps my friend :)

Share this post


Link to post
  • 0
4 hours ago, Rifleman said:

MOVEWITHSECTOR flag should do just what you're asking for, if I'm not mistaken.


Yeah tried that one before I gave up and asked for help. It no worky...

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