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

Death when touching floor (Solved)

Recommended Posts

Hi all,

 

I'm trying to have the player die when he lands on the floor of the lowest sector in my map, which has a floor heigth of 0.

 

i've been trying some functions in ACS but I can't get it to work.

 

this is the script I'm using:

 

Script 3 ENTER
{
  Thing_ChangeTID(0, 1000 + PlayerNumber());
  
  delay(1);
  
  if(GetActorFloorZ(1000)<1.0)
  {
  thing_damage2(1000,300,11);
  }
}

 

 

Am I missing something or is there a better way of doing it?

Share this post


Link to post
13 minutes ago, Nine Inch Heels said:

You don't need a script for this. You can use floor property actors instead.

How would I do that?

Share this post


Link to post
6 minutes ago, Nine Inch Heels said:

floor property actors are placable things you put like monsters. they will affect the sector they're in, and they allow you to choose from several actions.

Thanks! I managed to make it work with "Actor hits floor" and the special action "thing_damage".

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
×