View Single Post
Old 12-22-19, 04:18 PM   #1
JhonSilver
Watch
 
Join Date: Jul 2017
Posts: 27
Downloads: 19
Uploads: 0
Default How to make torpedoes to guide at "noisemakers"

in

private bool CheckTargetInSensorCone()

add this code below line 23
---------------------------------------

for (int j = 0; j < UIFunctions.globaluifunctions.playerfunctions.sens ormanager.noisemakerObjects.Length; j++)
{
if (this.CheckWithinSensorAngles(UIFunctions.globalui functions.playerfunctions.sensormanager.noisemaker Objects[j].gameObject.transform) && !this.passiveHoming)
{
this.targetTransform = UIFunctions.globaluifunctions.playerfunctions.sens ormanager.noisemakerObjects[j].transform;
this.DisableSnake();
return true;
}
}

------------------------------------
------------------------------------


Can I give a link to my page here ?
JhonSilver is offline   Reply With Quote