Files

19 lines
451 B
Plaintext

//* This file is explicitly licensed under the MIT license. *//
//* Copyright (c) 2024 Citadel Station developers. *//
/datum/ai_pathfinder/astar
/datum/ai_pathfinder/astar/search(atom/movable/agent, atom/source, atom/destination, limit, within, slack)
var/list/path = SSpathfinder.get_path_astar(
agent,
source,
destination,
within,
limit,
slack,
)
if(isnull(path))
return null
return new /datum/ai_pathing(path, FALSE)