View Single Post
  #2  
Old 11-08-2011, 08:57 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Yes you can use the pos()-methods of Actors


example (Shows coordinates of a plane after a player entered it):
Code:
    public override void OnPlaceEnter(Player player, AiActor actor, int placeIndex)
    {
        base.OnPlaceEnter(player, actor, placeIndex);

        GamePlay.gpLogServer(null, "Plane entered at X:{0} y:{1}", new object[] { actor.Pos().x, actor.Pos().y }); 
    }
Reply With Quote