Set heading of new character when entering start zone
I've modified the starting zone for characters using the World:SoFStartZoneID rule. New characters start in this zone properly. They appear at the zone 'safe point' so I modified the zone entry and set the safe_x, safe_y and safe_z appropriately.
However, new characters enter the world facing the wrong way! How can I modify their heading? |
I figured out a way to do it, but not sure if it's the best/most elegant solution.
I implemented a player.pl quest for the zone, with an EVENT_ENTERZONE routine that checks if they are entering the zone at the safe spot, and if so, calls quest::movepc() to change their heading. One thing I noticed, the heading parameter in movepc() has to be double the heading returned by #loc |
All times are GMT -4. The time now is 11:35 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.