Posted By: DLively
[help] with functions - 07/30/14 05:20
Code:
function basic_effect(var* var_num){ VECTOR effect_spot; vec_for_vertex(effect_spot, me, var_num); effect(wings_Effect_base, 2, effect_spot, nullvector); return(var_num); } action tempact(){ while(1){wait(1); basic_effect(21); my.pan += 15 * time_step; } }
Why doesn't this work? If I just place the effect in the action, it obviously works - but not if I place it in a function...