Page 1 of 1
player/actor information
Posted: Thu Dec 30, 2010 21:04
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.
Re: player/actor information
Posted: Fri Dec 31, 2010 3:56
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?
Re: player/actor information
Posted: Fri Dec 31, 2010 4:31
by NeoHippo
Re: player/actor information
Posted: Fri Dec 31, 2010 16:10
by TaBaR
GetActorX / GetActorY doesn't give the sector
GetActorZ stays 0 as long as the player is standing on a floor
Re: player/actor information
Posted: Sat Jan 01, 2011 0:42
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.
Re: player/actor information
Posted: Mon Jan 03, 2011 7:33
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.
Re: player/actor information
Posted: Mon Jan 03, 2011 21:35
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.