player/actor information

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
TaBaR
Posts: 33
Joined: Tue Sep 12, 2006 15:40

player/actor information

Post by TaBaR »

is there a way to determine what sector a player is in? making a maze map that changes randomly an don't want the sector the player is in to change.
User avatar
TaBaR
Posts: 33
Joined: Tue Sep 12, 2006 15:40

Re: player/actor information

Post by TaBaR »

is there a way to tell if a player is moving up or down (with the floor) like on a platform or moving the floor up or down?
User avatar
TaBaR
Posts: 33
Joined: Tue Sep 12, 2006 15:40

Re: player/actor information

Post by TaBaR »

GetActorX / GetActorY doesn't give the sector
GetActorZ stays 0 as long as the player is standing on a floor
User avatar
NeuralStunner
Posts: 253
Joined: Tue Dec 29, 2009 3:46
Location: IN SPACE
Contact:

Re: player/actor information

Post by NeuralStunner »

TaBaR wrote:GetActorZ stays 0 as long as the player is standing on a floor
Wrong! It's an absolute height. You can get the distance to the floor by comparing it with [wiki]GetActorFloorZ[/wiki] (which is also absolute). Check whether that difference is reasonably close to zero, and whether Z height is changing as well.
Dean Koontz wrote:Human beings can always be relied upon to exert, with vigor, their God-given right to be stupid.
Spoiler: System Specs
User avatar
TaBaR
Posts: 33
Joined: Tue Sep 12, 2006 15:40

Re: player/actor information

Post by TaBaR »

ok, it does work, but it needs a "script enter" not "script open". i did not find anywhere that it says that it requires that statement.

thank you.
Attachments
maze.rar
(36.25 KiB) Downloaded 82 times
User avatar
NeuralStunner
Posts: 253
Joined: Tue Dec 29, 2009 3:46
Location: IN SPACE
Contact:

Re: player/actor information

Post by NeuralStunner »

Enter applies to each specific Player as activator. Open does not. So trying to affect the activator in an Open script is not going to do much.
Dean Koontz wrote:Human beings can always be relied upon to exert, with vigor, their God-given right to be stupid.
Spoiler: System Specs
Locked

Return to “GZDoom”