Reference: eLL plugin (freeware)
shotty ea example:
Code:
include <eLL.wdl>;
define _stuffIndex, skill22;
var stuffIndex = -1;
entity* eThing;
var i0;
var thingCount;
/*******************************
aKnowsJack
a parent of jack's things
*******************************/
action aKnowsJack {
stuffIndex += 1;
my._stuffIndex = stuffIndex;
eaAdd(my._stuffIndex, ent_create(<dirtySocks.mdl>, my.x, NULL));
eaAdd(my._stuffIndex, ent_create(<pantyHose.mdl>, my.x, NULL));
eaAdd(my._stuffIndex, ent_create(<duckTape.mdl>, my.x, NULL));
eaAdd(my._stuffIndex, ent_create(<ammonium_nitrate.mdl>, my.x, NULL));
eaAdd(my._stuffIndex, ent_create(<fuel_oil.mdl>, my.x, NULL));
while(me != NULL) {
//...
i0 = 0;
thingCount = eaGetCount(my._stuffIndex);
while(i0 < thingCount) {
eThing = eaGet(my._stuffIndex, i0);
if (eThing != NULL) {
vec_set(eThing.x, my.x);
eThing.frame = my.frame;
}
i0 += 1;
}
//...
wait(1);
}
}