#1
|
|||
|
|||
Event Coordinates?
S!
Is there a way to get the X and Y coordinates at which an event like spawning in or taking off occurs? Thanks |
#2
|
|||
|
|||
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 }); } |
#3
|
|||
|
|||
Thanks that was a great help.
Is there a list somewhere that shows all the properties? |
#4
|
|||
|
|||
Quote:
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE |
|
|