Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   Event Coordinates? (http://forum.fulqrumpublishing.com/showthread.php?t=27726)

AKA_Scorp 11-08-2011 09:04 PM

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

FG28_Kodiak 11-08-2011 09:57 PM

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 });
    }


AKA_Scorp 11-09-2011 12:42 AM

Thanks that was a great help.

Is there a list somewhere that shows all the properties?

salmo 11-09-2011 01:39 AM

Quote:

Originally Posted by AKA_Scorp (Post 359786)
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


All times are GMT. The time now is 06:21 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.