1. I am trying to making a plugin and want to be able to spawn in non-entity prefabs. Is this possible?

    My plugin I want to make sets up a lobby room on the map that can only be gotten to when you first join or die.
    I want to add non-entity items into the lobby. Is there any way to achieve this? Or is it beyond Oxide.

    Thanks,
    Randy
     
  2. Wulf

    Wulf Community Admin

    What are you thinking of as a non-entity?
     
  3. I dont know if he means the same.. but i think i have the same question. Possible to spawn different projectiles instead of only serverprojectile ?

    Code:
    BaseEntity entity = GameManager.server.CreateEntity(component.projectileObject.resourcePath, new UnityEngine.Vector3(player.transform.position.x, player.transform.position.y + 1.5F, player.transform.position.z), new UnityEngine.Quaternion(), true);
               
            //    ServerProjectile Projectile = entity.GetComponent<Projectile>();
               
              //  serverProjectile.gravityModifier = 0.01F;
              //  serverProjectile.speed = 50F;
                entity.SendMessage("InitializeVelocity", (object)(player.eyes.HeadForward() * 1f));
                entity.Spawn(true);