hmm i know how to do that, i should of said i'm looking for something that can do it outside of the entity's action.

like ent_set_function(entity,function).