1. Hello everybody :)

    i create an airdrop and set the position. But the position is wrong.

    config_airdroppos //Vector3

    How i set the airdrop position:
    Code:
    config_airdroppos = player.transform.position;
    SendReply(player, "Airdrop position set");
    
    How i call the airdrop:
    Code:
    var box = GameManager.server.CreateEntity("assets/prefabs/npc/cargo plane/cargo_plane.prefab", config_airdroppos, new Quaternion(), true);
    var box2 = GameManager.server.CreateEntity("assets/prefabs/npc/cargo plane/cargo_plane.prefab", config_airdroppos, new Quaternion(), true);
    box.Spawn(true);
    box2.Spawn(true);
    SendReply(player, "Airdroptest started");
    
    But both airdrop are differntly and no one at the position i set. Whats wrong?
     
  2. ok i get it work. You must set the airdrop position seperatly :D

    Code:
    BaseEntity planeEntity1 = GameManager.server.CreateEntity("assets/prefabs/npc/cargo plane/cargo_plane.prefab", new Vector3(), new Quaternion(1f, 0f, 0f, 0f));
    BaseEntity planeEntity2 = GameManager.server.CreateEntity("assets/prefabs/npc/cargo plane/cargo_plane.prefab", new Vector3(), new Quaternion(1f, 0f, 0f, 0f));
    CargoPlane plane1 = planeEntity1.GetComponent<CargoPlane>();
    CargoPlane plane2 = planeEntity2.GetComponent<CargoPlane>();
    plane1.InitDropPosition(config_airdroppos);
    plane2.InitDropPosition(config_airdroppos);
    planeEntity1.Spawn(true);
    planeEntity2.Spawn(true);
    
    can close :)
     
  3. You can mark your post solved by going to "Thread Tools" at the top of your first post, "Edit Title" and changing "(No prefix)" to "Solved". :)
     
  4. Ah ok thanks :)
     
  5. Let's say i wanted to make a plane go down like the plane does when destroyed, could you tell me how that would look like. the code i mean??