给entity设置两个time属性,比如a1、a2,设置一个time属性的全局变量b,设置一个real型的全局变量c。2 Q, g. H; \! p' U' e! P
当entity进入buffer的时候,设置a1为ac,当entity离开buffer的时候,设置a2为ac-a1,b:=b+a2,c:=b/ac。3 P/ F; \9 j9 u7 x
这里,c就是buffer的平均数量。 . [$ j3 m: ]/ W! [4 L你说的队长和buffer的平均数量没什么区别。
是有.numMU这个属性的,我刚刚查帮助找到了, q: v+ `+ _: F. i2 p
numMu 4 _- {/ h" `' }( i: H0 PUsage: <mu_path>.numMu; + |" \5 F' K" b4 `6 [4 ~. J% h 5 N+ Q% p3 V3 ]- ~. {The method numMu returns the number of MUs located on the loading space of the MU designated by <mu_path>. 7 y/ f) V* ]6 M; l3 U+ i3 M ! S* d a8 v$ }* |0 E" qThe return value is of type integer. ( H7 \7 V) v# | . b3 S% s( l2 \Example: .MUs.transporter:1.numMu;