i did add a action to E witch is a spinkick for my character. The problem i am facing is that when i press the E key quickly it doesnt run the whole animation. If i hold down the E key it loops the animation. But the setup is quite easy.
In
input.cfgyou make a new
ACTION called
FlyYou then add a
KeyMapping KeyE FlyNow you need to add an animation in the characters opr file.
Add
LoadAnimation Fly fly.FBX (this is a separate animation file, you could use time instead if you have all animations bakes)
Now, in the character.gsl file (controller file) you add a line where you see the movement code
if (event == "Input")
{
if (params.stringValue == "Forward")
{
forwardPressed = params.floatValue;
return true;
}
if (params.stringValue == "Backward")
{
backwardPressed = params.floatValue;
return true;
}Just go to the end and add
if (params.stringValue == "Fly")
{
FlyPressed = params.floatValue;
return true;
}I am probably missing something here at the end but I am at work now.
But this should work like this now.
When pressing E the keymapping starts the action Fly. This means that params.stringvalue is turned on and the animation in the opr that is called Fly will start.
This is probably not the whole truth but I think it should work
