UnityEngine Vector3 namespace cannot be foundSolved
Hello Guys i am so new to Rust-Oxide Development

i will just show my code
using Oxide.Core.Libraries.Covalence;
using UnityEngine;

namespace Oxide.Plugins
{
    [Info("MinicopterSpawner","NotScammer","1.0")]
    public class MinicopterSpawner : RustPlugin
    {
        private const string minicopterPrefab = "assets/content/vehicles/minicopter/minicopter.entity.prefab";


        [Command("spawnminicopter")]
        private void SpawnMinicopter(IPlayer player,string cmd, string[] args)
        {
            var spawnPosition = new Vector3(player.Position().X, player.Position().Y + 1.5F, player.Position().Z);
        }
    }
}
​

and i get a error about Vector3 (it is something like there is not Vector3 thing u need to create one)
but in a youtube video i saw he had no problems
can u plz help me ?
What exactly is the error you are seeing?
one min my vs is turkish lemme do english

Merged post

the type or namespace name could not be found
Where is it showing that error?
var spawnPosition = new Vector3(player.Position().X, player.Position().Y + 1.5F, player.Position().Z);

at Vector3
it is red underlined
So in your IDE? You'd need to add a reference in your project to the UnityEngine.dll file. Might be under UnityEngine.Core, Physics, or another now, unsure which.
where is UnityEngine.dll

Merged post

i added all of Oxide-Rust folder dll's
All of the DLLs you need would be included with your server install from Steam.
thank you there is no error anymore
Locked automatically