QuestionSolvedhow to put this code in robocraft?

Posts 1–2 of 2 · Page 1 of 1
how to put this code in robocraft?
How to put this code in robocraft?
I found it into another threet and he said :
You'll need to put this code into C# and inject it into robocraft by your own ways.
[but how , i'm starter and I don't know how . If you can , place some photo how to do.]

Code start:

m_BaseWeapons = UnityEngine.Object.FindObjectsOfType(typeof(BaseWe apon));

foreach (UnityEngine.Object Weap in m_BaseWeapons)
{
var curWeap = Weap as BaseWeapon;
if (!curWeap)
continue;

// No recoil, super range
curWeap.WeaponStats.RecoilForce = 0.0f;
curWeap.WeaponStats.ProjectileRange = 1000.0f;
curWeap.WeaponStats.ProjectileSpeed = 100.0f;

// No inaccuracy
curWeap.Accuracy.BaseInAccuracyDegrees = 0.0f;
curWeap.Accuracy.MovementInAccuracyDegrees = 0.0f;
curWeap.Accuracy.RepeatFireInAccuracyTotalDegrees = 0.0f;
curWeap.Accuracy.FireInstantAccuracyDecayDegrees = 0.0f;


// No shake
curWeap.Effects.CameraShakeDuration = 0.0f;
}

Code end.
I also hope in a tutorial
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us