The above didn't work. I guess one of the issues I am having is understanding m_Equip.Attachments. From my understanding it looks for a value 0-11 (since there are 12 equipable attachment slots) and I can create a loop to cycle through all slots. That much I get, but I guess I don't understand how to correlate the slot to the actual attachment id. This is about as far as I get in terms of the actual loop
Code: Select all
bool getSetAttachment() //not sure if this is the correct statement
for (int i = 0; i < 12; i++)
{
if(m_Equip.Attachments[i])
//What to do here?
}
Then I am guessing once that is done I would simply call it in ai_automaton to see if it equals the attachment ID?
Code: Select all
if (PPet->getSetAttachment() == 8643)