Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Doom-X-Machina

Ceiling actor not rising with ceiling...

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
Posted (edited)

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

 

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

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

Share this post


Link to post
  • 0

@Rifleman Nah I just tested it. +MOVEWITHSECTOR doesn't seem to work. My guess is that it's only for floors 🙂 It would be really cool if it did though 👍 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×