AKA_Scorp
11-08-2011, 08:04 PM
S!
Is there a way to get the X and Y coordinates at which an event like spawning in or taking off occurs?
Thanks
FG28_Kodiak
11-08-2011, 08:57 PM
Yes you can use the pos()-methods of Actors
example (Shows coordinates of a plane after a player entered it):
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 });
}
AKA_Scorp
11-08-2011, 11:42 PM
Thanks that was a great help.
Is there a list somewhere that shows all the properties?
salmo
11-09-2011, 12:39 AM
Thanks that was a great help.
Is there a list somewhere that shows all the properties?
Ataros's "All Samples" of scripts is a good start. See Here http://forum.1cpublishing.eu/showthread.php?t=26523
vBulletin® v3.8.4, Copyright ©2000-2024, Jelsoft Enterprises Ltd.