Fails to Compile with June 2024 Updates

Error while compiling HeliControl: Argument 1: cannot convert from 'UnityEngine.Vector3' to 'BasePlayer' | Line: 1931, Pos: 37

same here: 65 HeliControl - Failed to compile: Argument 1: cannot convert from 'UnityEngine.Vector3' to 'BasePlayer' | Line: 1931, Pos: 37

please can u update

Same here!!!
[Error] Error while compiling HeliControl: Argument 1: cannot convert from 'UnityEngine.Vector3' to 'BasePlayer' | Line: 1931, Pos: 37

Here is my 1926 - 1932:

private void StartStrafe(PatrolHelicopterAI heli, BasePlayer target, bool useNapalm)
{
if (heli == null || !(heli?.IsAlive() ?? false) || (heli?._currentState ?? PatrolHelicopterAI.aiState.DEATH) == PatrolHelicopterAI.aiState.DEATH || target == null) return;
heli.interestZoneOrigin = target.transform.position;
heli.ExitCurrentState();
heli.State_Strafe_Enter(target, useNapalm);
}

PLEASE send a update!!!



Merged post

I think it works...

I used "target.transform.position" instead of "target" in line 1931.

Try for yourselves! My server compiled it at startup.

[Info] Loaded plugin HeliControl v1.4.5 by Shady

Merged post

Worked ONE time on restart. Now the same error accurs over and over...

Failed to compile: Argument 1: cannot convert from 'UnityEngine.Vector3' to 'BasePlayer'

should I now change everything that is called "Vector3" to "BasePlayer"? or only in line 1931

Same Here, latest version will not compile!

"[CSharp] Started Oxide.Compiler v successfully
Error while compiling HeliControl: Argument 1: cannot convert from 'UnityEngine.Vector3' to 'BasePlayer' | Line: 1931, Pos: 37"