dantedevil
Well-known member
I'm trying to optimize several scripts, to use them in a more efficient way, like Inline code. 
I decided to open this thread, while I'm trying on my own and when I can't do it, I'll share the scripts and request the necessary help.
In this particular case, I want to create a script similar to the one I share, but instead of "current_branch", I'll use "current_set".
So the new script would be @cmd setAni
My problem here, is that I did not find information about what I should put instead of "char branchC".
I decided to open this thread, while I'm trying on my own and when I can't do it, I'll share the scripts and request the necessary help.
In this particular case, I want to create a script similar to the one I share, but instead of "current_branch", I'll use "current_set".

So the new script would be @cmd setAni
Code:
void branchAni(void branch, void Ani)
{// Branch Checker and Animation changer
// Dantedevil
void self = getlocalvar("self");
char branchC = openborvariant("current_branch");
if(branch==branchC){
changeentityproperty(self, "animation", openborconstant(Ani), 2); //Change the animation
}
}
My problem here, is that I did not find information about what I should put instead of "char branchC".
Last edited: