Jump to content
  • 0

How do I check wether a floating monster is touching walls, floors or ceilings?


PeceMan

Question

I'm making custom monsters with decorate, and I'm trying to make sortof like projectile, pseudo lost soul, monsters, which die as soon as they collide with the environment.

The problem is that I don't know how to make the actor do something, or jump to a specific state, based on collision.

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

What version of Decorate (Zardronum compatibility is desired)?
ACS solution is suited?
Why not use Zscript (made you mod Gzdoom/Lzdoom only compatible)?

Not tested example

actor missile_thing
{
monster
health 50
radius 20
height 20
  
states
{
  spawn:
    sprite frame tics a_chase();
  loop;

  melee:
  missile:
    tnt1 a 0 a_changeflag("missile", true)
    tnt1 a 0 a_changeflag("nogravity", true)
    tnt1 a 0 a_skullattack()// or how lost soul attack named??
  flying_loop:
    sprite frame tics //it should fly like a missile
  loop

  death:
    sprite frame tics
  stop
}

}

 

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