Results 1 to 4 of 4

Thread: Is the parachute an actor?

  1. #1
    Supporting Member
    Join Date
    Dec 2019
    Posts
    382
    Post Thanks / Like
    Total Downloaded
    11.81 MB

    Is the parachute an actor?

    Hi,

    Is the parachute an actor? An aircraft is and the player enters/leaves it as has been explained to me. But how to tell if after leaving the aircraft the player lands ok, or dies? Is this a game event, some kind of stat?

    Any help appreciated.
    I am Yo-Yo not YoYo (that's someone else)

  2. #2
    Novice Pilot
    Join Date
    Oct 2021
    Posts
    92
    Post Thanks / Like
    Total Downloaded
    11.69 MB

    Re: Is the parachute an actor?

    Is the parachute an actor? Answer: no.
    And now the good news.

    <PersonParachuteLanded> and <PersonParachuteFailed> are events:

    PersonParachuteLanded = maddox.game.GameEventId #27
    PersonParachuteFailed = maddox.game.GameEventId #28

    And so, you may get some information from these methods:

    Code:
    public override void OnPersonParachuteFailed(AiPerson person) {
          base.OnPersonParachuteFailed(person);
     }
    	
    public override void OnPersonParachuteLanded(AiPerson person) {
          base.OnPersonParachuteLanded(person);
    }
    Wherever we talk about an AiPerson, we can treat the object as an AiActor.The following line demonstrates this:

    < public interface AiPerson : AiActor >

    C# supports multiple inheritance of interfaces. So, the source code uses interfaces to implement multiple inheritance. The language uses the colon in the interface declaration to indicate that AiPerson is an AiActor. We may say that AiActor is base interfaces of AiPerson. Looking at the relationship from the other direction, we can also say that AiPerson is a derived interface of AiActor.

    So, Oleg Maddox and his team added the extra function that allows the AiPeron to give an AiActor extra ability. What we haven’t to do is to duplicate all the functionality of the AiActor; that comes along anyway.
    Last edited by GANIX; Mar-14-2023 at 11:10. Reason: small editorial changes for a better understanding

  3. Likes ATAG_Snapper, Yo-Yo, zzzxxxxzzz liked this post
  4. #3
    Supporting Member
    Join Date
    Dec 2019
    Posts
    382
    Post Thanks / Like
    Total Downloaded
    11.81 MB

    Re: Is the parachute an actor?

    Heroic answer, thanks.
    I am Yo-Yo not YoYo (that's someone else)

  5. #4
    Supporting Member
    Join Date
    Dec 2019
    Posts
    382
    Post Thanks / Like
    Total Downloaded
    11.81 MB

    Re: Is the parachute an actor?

    Lol, what really confuses me is how now when I search my visual studio objects for 'parachute' it find this information! However you phrase it so much better and direclty answered my question, so many, many thanks. You've saved me hours.
    I am Yo-Yo not YoYo (that's someone else)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •