Face object without smartseek

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

Face object without smartseek

Postby sinkillerj » Thu Oct 14, 2010 4:42 pm

I am trying to recreate the casting of MagiQuest Online, using the following code everything is perfect however the avatar does not turn to face the object. Is there a way to do the animation in place and still turn to face the object?

Code: Select all
CastObjectOneShot:
    logic:
        actions:
          - type: oneshot
            name: CastObjectOneShot
            oneshot:
                animation: CastMedium
           smartseek: false
                noseek: true
User avatar
sinkillerj
 
Posts: 7
Joined: Mon Oct 04, 2010 7:02 pm

Re: Face object without smartseek

Postby Paradox » Thu Oct 14, 2010 7:16 pm

The "rotate" mode used in MagicQuest was added specifically to that version, no versions of Uru have anything that does that. :(

I remember talking to Chogon at some point before it was implemented in MagiQuest, and he said they would need to add support (which they did) for rotate-to-face points.
"And one day I woke to find the future held no place for me. I was unwanted in a world, that with my hands I'd helped to build. Where once was honesty and pride, I now stand broken and alone."
Paradox
 
Posts: 1261
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Face object without smartseek

Postby sinkillerj » Fri Oct 15, 2010 6:48 pm

Hmm hard coded as I feared. Would it be possible with python or otherwise to move the seekpoint to the coordinates of the avatar locally, as well as use math to rotate it to point at the object? It would then have to trigger the oneshot.
User avatar
sinkillerj
 
Posts: 7
Joined: Mon Oct 04, 2010 7:02 pm


Return to Scripting

Who is online

Users browsing this forum: No registered users and 2 guests