Back to home
This game is archived.
If you with to unarchive it, click the "restore" button in the options menu.

Category:
Training / Drills / Tools

Author:
KevlaR

Rating:
17

Version:
2.2.0

Posted:
4 months ago

Last updated:
2 days ago

Tags:
map detector detection

Project Links

Share this workshop!

Options

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

2 days ago 2.2.0

Shrinked the rule to 1 action instead of 3

34NTJ
click to copy
3 months ago 2.1.1

Edited the Havana value for escort

79R1R
click to copy