Right now, when I right click ---> add model in my own editor, it just creates the chosen model with ent_create, and assigning NULL as an action.
So basicly, what I need is assigning an action after it has been created. What I came up with is whenever I assign a NEW action to the entity in the editor, I just store its flags, skills, pos etc and then ent_remove(selected), and then recreate it with the chosen action with ent_create to see the change in real-time.
But I had trouble returning the action name to a string for saving purposes. Your method will work and is same as what Slin suggested, though it also needs typecasting ^^, I could use skill[99] for it ^^
But is there a way maybe through some engine commands to return it? Otherwise I guess I'll have to spend a skill :P
Thanks for the help btw
appreciated! I'll still wait a dev to answer this post though!