None of the above is working for me, ayone got an aswer to this?
I've been trying to make a rogue fightclass and moving behind an enemy is just the thing i want it to do.
[F] 02:30:48 - [FightClass] Launch C# code: public Vector3 BackofVector3(Vector3 from, float radius)
{
if (from != null && from != Vector3.Empty)
{
//abit ugly
float rotation = -robotManager.Helpful.Math.DegreeToRadian(robotManager.Helpful.Math.RadianToDegree(ObjectManager.Me.TargetObject.Rotation)+90);
return new Vector3((System.Math.Sin(rotation)*radius) + from.X, (System.Math.Cos(rotation)*radius) + from.Y, from.Z);
}
return new Vector3(0, 0, 0);
}
[E] 02:30:48 - Compilator Error :
c:\Users\Dean\AppData\Local\Temp\szwfbcwc.0.cs(20,5) : error CS1513: } expected
c:\Users\Dean\AppData\Local\Temp\szwfbcwc.0.cs(30,6) : error CS1597: Semicolon after method or accessor block is not valid
c:\Users\Dean\AppData\Local\Temp\szwfbcwc.0.cs(32,1) : error CS1022: Type or namespace definition, or end-of-file expected