Page 1 of 1

[ACS] Floor height condition?

Posted: Wed Apr 08, 2015 1:04 pm
by Kotometal041
I have a question about ACS in UDMF maps.

For solve the multiplayer issue in Pinochestein GL's MAP04 .

How could be the code if i want the linedef action executes under a condition based on floor height?

Example

Code: Select all

script 1 (void)
{
  if("Floor height" == 128)
  {
    "Linedef action"
  }
}
Actually added a switch with the "Script Execute" special.

When a player uses it, the elevator lowers while it's up. Also this script includes polyobject moving (the elevator doors).

Any help serve me, will be rewarded with the v2 update, this is the only thing stopping me.

RE: [ACS] Floor height condition?

Posted: Wed Apr 08, 2015 1:31 pm
by Klofkac
I guess this can be used: http://zdoom.org/wiki/GetSectorFloorZ

RE: [ACS] Floor height condition?

Posted: Wed Apr 08, 2015 3:09 pm
by ibm5155
If I remember all Get Sector Z height never worked fine on sloped and 3d floors area...

RE: [ACS] Floor height condition?

Posted: Wed Apr 08, 2015 11:47 pm
by ZZYZX
For 3D floors you can use control sector, and for slopes you specify the point you want the height at.