Request_Entity_Destroy2 not working? Or just bad code?

Discussion in 'Empyrion API' started by Emperor Johnny, Apr 8, 2019.

  1. Emperor Johnny

    Emperor Johnny Commander

    Joined:
    Dec 27, 2015
    Messages:
    22
    Likes Received:
    20
    Here is my code :

    public void destroyEntity(int ID, string current_Playfield)
    {

    GameAPI.Game_Request(CmdId.Request_Entity_Destroy2, 25013,
    new Eleon.Modding.IdPlayfield(ID, current_Playfield));

    }

    In game I'm sending myself a message at the same time that I call the detroyEntity2 function that gives my Player's entity ID and current playfield and I'm passing these values into the destroy Entity function. The unfortunate news is that I'm not dying. Please tell me what I'm doing wrong so I can finally kill myself.
     
    #1
  2. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    That isn't a playfield name
     
    #2

Share This Page