HeroEngine Forums
HeroEngine Support => Scripting & Programming => Topic started by: Mikey90 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?
-
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.
// 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"
.
.
-
how do you call the function?
-
We use a chat command :D
http://hewiki.heroengine.com/wiki/Chat_commands
-
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.