mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
override ped anims only on server
This commit is contained in:
parent
6e989088c3
commit
25f9c8a2a7
2 changed files with 6 additions and 3 deletions
|
@ -46,8 +46,11 @@ namespace SanAndreasUnity.UI {
|
|||
|
||||
// m_headerScrollViewPos = GUILayout.BeginScrollView (m_headerScrollViewPos, GUILayout.Height(headerHeight));
|
||||
|
||||
if (playerExists)
|
||||
Ped.Instance.shouldPlayAnims = !GUILayout.Toggle( !Ped.Instance.shouldPlayAnims, "Override player anims" );
|
||||
if (NetUtils.IsServer)
|
||||
{
|
||||
if (playerExists)
|
||||
Ped.Instance.shouldPlayAnims = !GUILayout.Toggle( !Ped.Instance.shouldPlayAnims, "Override player anims" );
|
||||
}
|
||||
|
||||
m_displayPackages = GUILayout.Toggle(m_displayPackages, "Display packages");
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
- send button input events to server:
|
||||
|
||||
- add ability for client to request: destroy my vehicles ;
|
||||
- add ability for client to request: ;
|
||||
|
||||
- port the whole UI to multiplayer
|
||||
|
||||
|
|
Loading…
Reference in a new issue