PDA

View Full Version : Set heading of new character when entering start zone


iluvseq
03-08-2012, 01:41 AM
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?

iluvseq
03-09-2012, 02:10 PM
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