[HELP ME] i wanna define m_Pos in my Game Mod
[HELP ME] i wanna define m_Pos in my Game Mod
hi
i have a problem
in my game mod i wanna Cread Sound for emotions but i have an error in my gamecontex.cpp file
for example:
in Compile say to me undefined m_Pos
please help me how to define it
thanks
i have a problem
in my game mod i wanna Cread Sound for emotions but i have an error in my gamecontex.cpp file
for example:
Code: Select all
pChr->SetEmoteType(EMOTE_HAPPY);
CreateSound(m_Pos, SOUND_RIFLE_BOUNCE);
break;
case EMOTICON_OOP:
case EMOTICON_SORRY:
case EMOTICON_SUSHI:
please help me how to define it
thanks
Re: [HELP ME] i wanna define m_Pos in my Game Mod
I think 6 lines of code are not enough to find the problem.
I m Blue da ba dee da ba die
Re: [HELP ME] i wanna define m_Pos in my Game Mod
m_Pos is defined in CCharacterCore, and since you are writing code in CGameContext, you need to specify which character/core to use. You may want to use this:
CreateSound(pChr->GetCore().m_Pos, SOUND_RIFLE_BOUNCE);
CreateSound(pChr->GetCore().m_Pos, SOUND_RIFLE_BOUNCE);
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests