3 void ent_relay_call( world_instance
*world
, ent_call
*call
)
5 u32 index
= mdl_entity_id_id( call
->id
);
6 ent_relay
*relay
= mdl_arritm( &world
->ent_relay
, index
);
8 if( call
->function
== 0 ){
9 for( u32 i
=0; i
<vg_list_size(relay
->targets
); i
++ ){
10 if( relay
->targets
[i
][0] ){
13 call
.function
= relay
->targets
[i
][1];
14 call
.id
= relay
->targets
[i
][0];
15 entity_call( world
, &call
);
21 vg_error( "Unhandled function id: %u\n", call
->function
);