mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
show utilities only on server
This commit is contained in:
parent
518517a9c6
commit
a7dd283fd4
2 changed files with 12 additions and 0 deletions
|
@ -35,6 +35,14 @@ namespace SanAndreasUnity.UI {
|
|||
GUILayout.Label ("Pos: " + Ped.InstancePos);
|
||||
}
|
||||
|
||||
if (Utilities.NetUtils.IsServer)
|
||||
DisplayServerGui();
|
||||
|
||||
}
|
||||
|
||||
void DisplayServerGui()
|
||||
{
|
||||
|
||||
if (GUILayout.Button ("Spawn random vehicle")) {
|
||||
var spawner = FindObjectOfType<UIVehicleSpawner> ();
|
||||
if (spawner)
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
|
||||
- Cell focus is not always assigned on client - it happens when a syncvar for current ped in Player script arrives after Ped.Start()
|
||||
|
||||
- headless server: start scene specified at cmd line ; use port from cmd line ;
|
||||
|
||||
- add ability for client to request: spawn vehicle ; change ped model ; commit suicide ; destroy my vehicle ; spawn stalker ped ;
|
||||
|
||||
- port the whole UI to multiplayer
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue