请教yjieemail,你的意思是建一个method,来统计每一秒buffer里面的实体数?/ |0 }% O h1 B' n, E$ C0 g
用method来统计buffer里面的MU个数,请问有没有buffer.numMU这个属性的?还是用客制化属性。3 C0 \$ Y+ f7 V1 w l3 V2 k
还有怎么控制它每隔一秒就记录buffer里面的mu个数啊?! ~8 h4 P6 q3 p1 t/ V0 f: w- F0 g
可以的话,请写一下程序我参考一下,谢谢~
是有.numMU这个属性的,我刚刚查帮助找到了5 ^; x# t2 e7 x
numMu 1 C- i. j% L: Y1 C6 x, u6 y" h
Usage: <mu_path>.numMu; 7 d/ `7 g' |2 Z, T: E4 R1 B & f# C) N) y- Z% @8 W! y2 jThe method numMu returns the number of MUs located on the loading space of the MU designated by <mu_path>. ! C; {, R; t! r7 c7 C( Z " x7 f9 Z/ R, u8 j3 U0 ]4 yThe return value is of type integer. $ s: ^* n9 G; v; n5 \& N
# `4 n. R U/ e5 P& @
Example: .MUs.transporter:1.numMu;