Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 11-08-2011, 08:04 PM
AKA_Scorp AKA_Scorp is offline
Approved Member
 
Join Date: Jan 2011
Posts: 31
Default 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
Reply With Quote
  #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
  #3  
Old 11-08-2011, 11:42 PM
AKA_Scorp AKA_Scorp is offline
Approved Member
 
Join Date: Jan 2011
Posts: 31
Default

Thanks that was a great help.

Is there a list somewhere that shows all the properties?
Reply With Quote
  #4  
Old 11-09-2011, 12:39 AM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default

Quote:
Originally Posted by AKA_Scorp View Post
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
__________________
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:03 AM.


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