You've already forked AM2R-Community-Updates
mirror of
https://github.com/izzy2lost/AM2R-Community-Updates.git
synced 2026-03-10 11:23:35 -07:00
10 lines
302 B
Plaintext
10 lines
302 B
Plaintext
/// enemy_target_check()
|
|
target = 0;
|
|
if (argument1 == 1 && distance_to_object(oCharacter) <= argument0) {
|
|
target = 1;
|
|
}
|
|
if (argument1 == 0 && distance_to_object(oCharacter) <= argument0) {
|
|
if (facing == 1 && x < oCharacter.x) target = 1;
|
|
if (facing == -1 && x > oCharacter.x) target = 1;
|
|
}
|