Ganryu Posted December 1, 2015 Is that doable? One of my scripts needs to know whenever the player is in a specific area of the map. It would be easy in Doom, but with Hexen I have the problem that the chaos thing allows the player to teleport back to the start of the level without crossing a linedef. If that had not been possible I could have simply used line defs to check where the player is... My script essentially summons monsters in a particular area as long as the player is nearby. Zdoom, Hexen. I'm using GZDoom Builder. 0 Share this post Link to post
scifista42 Posted December 1, 2015 You can check player's coordinates via GetActorX and GetActorY, then compare them with the map coordinates where you expect the player to be. Note that these functions return the coordinates as fixed point numbers, so you might want to convert them to map units first (>>16). 0 Share this post Link to post