Back to home

Map detector (Deprecated)

34NTJ
click to copy
This code is over 6 months old.
Codes expire after 6 months and will no longer function.
This game is archived.
If you with to unarchive it, click the "restore" button in the options menu.
This code can also be found at workshop.codes/34NTJ

Category:
Training / Drills / Tools

Author:
KevlaR

Rating:
18

Version:
2.2.1

Posted:
about 1 year ago

Last updated:
11 months ago

Tags:
map detector detection

Project Links

Share this workshop!

Options

WARNING: This map detector will no longer be updated! Please use the new map detection feature in the Workshop.

This code comes with a map detector ready for use. You can find how to use it here. Import the code or copy the rule located in the snippet.

Here are the values associated for each map:

rule("Map detector setup (Global variable Z)")
{
	event
	{
		Ongoing - Global;
	}

	actions
	{
		Set Global Variable(Z, Add(Multiply(Compare(Objective Position(0), !=, Null), Add(300, Round To Integer(X Component Of(
			Objective Position(0)), Up))), Round To Integer(X Component Of(Nearest Walkable Position(Vector(100, 100, 100))), Up)));
	}
}

Changelog

11 months ago 2.2.1

Updated the value for Lijiang Control Center, King's Row (Hybrid and Arcade) and Ilios Well

34NTJ
click to copy
about 1 year ago 2.2.0

Shrinked the rule to 1 action instead of 3

34NTJ
click to copy
about 1 year ago 2.1.1

Edited the Havana value for escort

79R1R
click to copy