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

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
NeoHippo
Posts: 408
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

Re: player/actor information

Post by NeoHippo »

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

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.
You do not have the required permissions to view the files attached to this post.
User avatar
NeuralStunner
Posts: 253
Joined: Tue Dec 29, 2009 3:46
Location: IN SPACE

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

Return to “GZDoom”