mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-17 05:18:27 +00:00
Send submit button event
This commit is contained in:
parent
7360e6f0ca
commit
78507f0f32
2 changed files with 11 additions and 1 deletions
|
@ -221,7 +221,8 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
|
||||
public virtual void OnSubmitPressed()
|
||||
{
|
||||
|
||||
if (m_shouldSendButtonEvents)
|
||||
PedSync.Local.OnSubmitButtonPressed();
|
||||
}
|
||||
|
||||
public virtual void OnJumpPressed()
|
||||
|
|
|
@ -69,6 +69,15 @@ namespace SanAndreasUnity.Net
|
|||
m_ped.OnCrouchButtonPressed();
|
||||
}
|
||||
|
||||
public void OnSubmitButtonPressed() => this.CmdOnSubmitButtonPressed();
|
||||
|
||||
[Command]
|
||||
void CmdOnSubmitButtonPressed()
|
||||
{
|
||||
if (m_ped)
|
||||
m_ped.OnSubmitPressed();
|
||||
}
|
||||
|
||||
public void PedStartedEnteringVehicle(Ped ped)
|
||||
{
|
||||
NetStatus.ThrowIfNotOnServer();
|
||||
|
|
Loading…
Add table
Reference in a new issue