Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Query:  (Read 2408 times)

0 Members and 1 Guest are viewing this topic.

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Query:
« on: April 14, 2007, 01:40:20 PM »

I have a query regarding the
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Query:
« Reply #1 on: April 14, 2007, 01:58:52 PM »

The attachments support PlayAnim, PlayAnimAsync and StopAnim methods (and the *Channel variations).
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Re: Query:
« Reply #2 on: April 14, 2007, 04:04:43 PM »

Can you help me out with a code example to get the attached file to PlayAnim one of its animations (gunfire)? I tried several things but can't get it to work: I tried the original actor name, and also the name given to the attachment (gun).
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Query:
« Reply #3 on: April 14, 2007, 04:14:09 PM »

Something like this should work:

Code: WME Script
  1. actor.AddAttachment("path\gun.x", "gun", "RightHand");
  2. var Gun = actor.GetAttachment("gun");
  3. Gun.PlayAnim("gunfire");
  4.  
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.043 seconds with 25 queries.