HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: How do I get my animated character in the engine?  (Read 1241 times)

Mikey90

  • Developers
  • *
  • Posts: 12
    • View Profile
How do I get my animated character in the engine?
« on: Apr 29, 14, 01:11:58 AM »

I was wondering, is there an easy way to get an animated character into the engine? As far as I can tell I have to get the character in the CCS system first and then have it work with the ACCC once it's logged in. Is there a way to bypass having to make a functioning CCS?
Logged

WorldWideZ

  • World Owners
  • ****
  • Posts: 524
    • View Profile
    • World Wide Zed
Re: How do I get my animated character in the engine?
« Reply #1 on: Apr 29, 14, 02:28:29 AM »

The best way to first test your char is to load it as a npc. if it works as expected when you have it possessed you can use the following to replace the main character.


We use this code to change appearance , i am unsure how dependent it is on other stuff so let me know. It is server side code we call from a chat command.

Code: [Select]
// Function to change your character
remote function Survivor_ChangeCharacter_Civillian(sourcePID as ID)
 
 
  accountID as ID = sourcePID                               // get account ID
  accntNode as NodeRef of Class _PlayerAccount = accountID  // use as node to
 
  var current_character_appearance = accntNode.GetMyVisibleCharacter()
  glomclass( "_extendedeventobject",  current_character_appearance )
  where current_character_appearance is kindof _extendedEventObject
    current_character_appearance._extendedEventLookup["_characterSpecification"] =\
      current_character_appearance._characterSpecification
    marshal current_character_appearance.geometry_list to \
      current_character_appearance._extendedEventLookup["geometry_list"]

    current_character_appearance._characterSpecification = "Civillian_1"
   
.
.
 
« Last Edit: Apr 29, 14, 02:30:50 AM by WorldWideZ »
Logged

Mikey90

  • Developers
  • *
  • Posts: 12
    • View Profile
Re: How do I get my animated character in the engine?
« Reply #2 on: Apr 29, 14, 08:33:03 PM »

how do you call the function?
Logged

WorldWideZ

  • World Owners
  • ****
  • Posts: 524
    • View Profile
    • World Wide Zed
Re: How do I get my animated character in the engine?
« Reply #3 on: May 03, 14, 02:57:59 AM »

Logged

Mikey90

  • Developers
  • *
  • Posts: 12
    • View Profile
Re: How do I get my animated character in the engine?
« Reply #4 on: May 04, 14, 12:49:50 PM »

Awesome thanks. I was finally able to get our character imported into the game and thanks to your suggestion of importing as an NPC and possessing. Everything seems to work fine. I haven't tried out the chat command yet though. I'll try that later today.
Logged