Scrap Mechanic

Scrap Mechanic

Not enough ratings
Support/Harassment AI TEMPLATE
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
30.782 KB
4 Aug, 2018 @ 2:37pm
1 Change Note ( view )

Subscribe to download
Support/Harassment AI TEMPLATE

In 1 collection by 3ntropy1
PTO Cardboard Battlecars
98 items
Description
This basic AI is meant to showcase how the Intelligentia mod can be used to make AI cars. This specific template has a number of complex functions that give it some cool interactivity:

-If the turret AI is ignoring you but the base AI is tracking you, this can function as a mobile support turret that protects you from enemies
-If both AIs are tracking you, this becomes a harassment vehicle that relentlessly hunts you
-The AI will make sure it is always 50 blocks away from you, and will not get any closer
-The switches on the back activate the shotgun and raise the roof so you can see the inner workings


LOGIC EXPLAINED:

The RED block is the outer proximity sensor, set for 250 range. The AI will start tracking you once you get within 250 blocks

The CYAN block is the inner proximity sensor, set for 50 range. If this block activates the vehicle will stop moving. This makes sure it always stays 50 blocks away from the player. Deleting this block converts the AI into a ramming battlecar.

The LIME block is the XOR logic gate that both proximity sensors are connected to. This again means the AI will only follow you if its outer proximity sensor is active.

The NAVY block is another 250 proximity sensor, but this one is connected directly to the AI core instead of the engines.


1 Comments
angery_goos 20 Jan, 2020 @ 7:03am 
the spud gun is missing in game fix plz