Replies: 1 comment
-
|
Sample how to add all possible addons to NPC weapon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
To able set scope addon to NPC weapon by LUA script, can somebody add this code?
void CWeapon::net_Export(NET_Packet& P)
{
inherited::net_Export (P);
}
and:
void CWeapon::net_Import(NET_Packet& P)
{
inherited::net_Import (P);
// Add this:
u8 scope;
P.r_u8(scope);
m_cur_scope = scope;
//
...........................
}
Beta Was this translation helpful? Give feedback.
All reactions