IAgentApp::AttachChar

BOOLIAgentApp::AttachChar(LPWSTRpwzAgentChar)

Load a character and attach it to the m_pptrChar member.

Defined in: ot_agent.cpp

Return Value

TRUE if successful, FALSE on error.

Parameters

pwzAgentChar

The file name of the character to load and attach. This need not be the full path as the server will try to load it from the %msagent%\chars directory for such files.

Comments

This function tries to call CreateChar to load a IAgentCharacterEx interface and attaches it to the m_pptrChar and also calls the OnInitChar virtual. You can call AttachChar more than once to attach a different char.