☆ベルトアクション作成 Beats of rageスレッド☆ (654レス)
前次1-
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん

163: 名前は開発中のものです。 [sage] 2021/06/14(月) 01:20:36.86 ID:f6qMiOOZ(1) AAS
@script
if(frame==0) { float Vx, Vz, Vy=3, dx=0, dz=0;
void self = getlocalvar("self");
int dir = getentityproperty(self, "direction");
float x = getentityproperty(self, "x");
float z = getentityproperty(self, "z");
if (dir==0) { dx = -dx; }
setlocalvar("T"+self, findtarget(self));
if( getlocalvar("T"+self) != NULL()){
void target = getlocalvar("T"+self);
float Tx = getentityproperty(target, "x");
float Tz = getentityproperty(target, "z");
if(Tx < x) { changeentityproperty(self, "direction", 0);
} else { changeentityproperty(self, "direction", 1); }
x = x+dx;
z = z+dz;
Vx = ((Tx-x)/(22*Vy));
Vz = ((Tz-z)/(22*Vy));
} else {
Vx = 1 ;
if(dir==0){ Vx = -Vx ; }
Vz = 0 ; }
tossentity(self, Vy, Vx, Vz); }
@end_script
他人様のアイデアを偉そうに紹介するのもアレなんですが、近くの敵に誘導ジャンプします。
if(frame==0) { float Vx, Vz, Vy=3, dx=0, dz=0;
これで、Frame 0の時、ジャンプ力3(Vy=3)で届く範囲を索敵してジャンプします。
攻撃するかどうかは、Anim中に記述されたコマンド次第で、このままなら、
攻撃可能と設定した近くの対象にジャンプするだけです。
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 2.110s*