Rotate Ability Example

edited January 2015 in Tutorials

Block

"Rotate"
{
    "Target"       "TARGET"
    "PitchYawRoll"  "0 0 0" //x y z values
}

Example: Rotate the caster every interval

"OnSpellStart"
{
    "ApplyModifier"
    {
        "ModifierName"  "modifier_rotating"
        "Target"       "CASTER"
    }
}

"Modifiers"
{ 
    "modifier_rotating"
    {
        "ThinkInterval" "%interval" 
        "OnIntervalThink"
        {
            "Rotate"
            {
                "Target"       "TARGET"
                "PitchYawRoll"  "%x %y %z"
            }
        }
    }
}


Pitch Rotation, 15 every frame (0.03 interval)


Yaw Rotation, 15 every frame


Roll Rotation, 15 every frame

The concept of Modding Community doesn't go well together with Competitive Business
My Project Page || My GitHub Profile ||

Comments

  • Posts: 17

    Any way to move the rotation axis away from the ground? I can see some fun ways to spin gyrocopter around xD

  • hey noya im new to this forum. wat do i need to write a tutorial? im not sure if any1 is interested in my 3rd person control code which i used in speed racing.

  • Posts: 14

    I cant seem to get it working does this still work?

  • It works fine for me.