[表示 : 全て 最新50 1-99 101- 201- 301- 401- 501- 601- 2ch.scのread.cgiへ]
Update time : 10/31 19:34 / Filesize : 359 KB / Number-of Response : 662
[このスレッドの書き込みを削除する]
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧] [類似スレッド一覧]


↑キャッシュ検索、類似スレ動作を修正しました、ご迷惑をお掛けしました

☆ベルトアクション作成 Beats of rageスレッド☆



433 名前:名前は開発中のものです。 mailto:sage [2022/09/12(月) 00:32:14.53 ID:62TYiDdQ.net]
void spawnentitybyallenemy(void vName, float fX, float fY, float fZ)
{ void vEnt; //Entity placeholder.
int iType , iValid, iDead, iECnt, iEnt; //Entity counter.
int Tx = 0, Ty = 0, Tz = 0, Tdir = 0;
void spawned = 0;
void self = getlocalvar("self");
iECnt = openborvariant("ent_max"); //Get current entity count.
for(iEnt=0; iEnt<iECnt; iEnt++) //Loop entity collection.
{ vEnt = getentity(iEnt); //Get entity handle.
if(vEnt) //Valid handle?
{ iValid = getentityproperty(vEnt, "exists"); //Get exists confirmation.
iDead = getentityproperty(vEnt, "dead"); //Get death status.
iType = getentityproperty(vEnt, "type"); //Get type.
if(vEnt && iValid && !iDead //Alive?
&& iType == openborconstant("TYPE_ENEMY")) //Enemy type?
{ Tx = getentityproperty(vEnt, "x");
Ty = getentityproperty(vEnt, "a");
Tz = getentityproperty(vEnt, "z");
Tdir = getentityproperty(vEnt, "direction");
if ( Tdir == 0 )
{ spawned = spawnchildentityforparent(vName, self, (Tx+fX), (Ty+fY), (Tz+fZ), 0);
changeentityproperty(spawned, "direction",1);
} else
{ fX = -fX;
spawned = spawnchildentityforparent(vName, self, (Tx+fX), (Ty+fY), (Tz+fZ), 0);
changeentityproperty(spawned, "direction",0);
} } } } }
画面上のHealth 0 以上の全ての敵の座標を取得して、その座標にEntityを出現させるスクリプト

動画のSpecial で全ての敵に物が降って来る演出に使っています。






[ 続きを読む ] / [ 携帯版 ]

全部読む 前100 次100 最新50 [ このスレをブックマーク! 携帯に送る ] 2chのread.cgiへ
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧](;´∀`)<359KB

read.cgi ver5.27 [feat.BBS2 +1.6] / e.0.2 (02/09/03) / eucaly.net products.
担当:undef