[ACS] Floor height condition?

Discuss all aspects related to modding Zandronum here.
Post Reply
Kotometal041
 
Posts: 30
Joined: Sat Aug 10, 2013 3:16 am
Location: Chile

[ACS] Floor height condition?

#1

Post by Kotometal041 » Wed Apr 08, 2015 1:04 pm

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.
Last edited by Kotometal041 on Wed Apr 08, 2015 1:05 pm, edited 1 time in total.

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

RE: [ACS] Floor height condition?

#2

Post by Klofkac » Wed Apr 08, 2015 1:31 pm

I guess this can be used: http://zdoom.org/wiki/GetSectorFloorZ
𝕂𝕝𝕠𝕗𝕜𝕒𝕔

User avatar
ibm5155
Addicted to Zandronum
Posts: 1641
Joined: Tue Jun 05, 2012 9:32 pm
Location: Somewhere, over the rainbow

RE: [ACS] Floor height condition?

#3

Post by ibm5155 » Wed Apr 08, 2015 3:09 pm

If I remember all Get Sector Z height never worked fine on sloped and 3d floors area...
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!

<this post is proof of "Decline">

User avatar
ZZYZX
Posts a lot
Posts: 742
Joined: Thu Jun 07, 2012 5:56 pm
Location: Ukraine
Clan: A3
Clan Tag: [A3]

RE: [ACS] Floor height condition?

#4

Post by ZZYZX » Wed Apr 08, 2015 11:47 pm

For 3D floors you can use control sector, and for slopes you specify the point you want the height at.

Post Reply