Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
PeceMan

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

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

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
×