Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

Scanner script help.

$
0
0
I messed around with detecting objects with GetFreeDestination. While it works its incredibly slow due to calling the GetFreeDestination-method too often.

Here is the script:
Code:
		static readonly float maxdistance = 500;
		static readonly float distanceMarkers = 400;
		static readonly float scanticks = 30; // ticks to scan the whole surroundings
		static readonly int angleResolutionPlane = 7;
		int currenttick = 0;
		int approxsteps = 5; // distance approximation steps
		float...
Scanner script help.

Viewing all articles
Browse latest Browse all 903

Trending Articles