OneSync: Ideas

Hi

This feature request is more like a “can we do that/would you accept a PR of this”
Sync nodes are really cool and it could be easy/useful to add event inside to trigger this kind of things:

-- Player related
PlayerDeath
PlayerEnterVehicle
PlayerHurt
PlayerLeaveVehicle
PlayerSetModel
PlayerEquipWeapon
PlayerSetArmour
-- Vehicle related
VehicleHurt
VehicleExplode
VehicleDoorOpen

etc… etc…

event execution is potentially slow, so this’d need some logic in code to rapidly handle polling for state transitions and ignore any if no event is registered for them.

perhaps an MTA-style system for event scope would also help, but that’s something that needs some interesting thought…

Adding some ideas to not forget it, that I might implement one day.

  • An event that takes a player’s server id as argument “source” and send the specific event to him and all players in its bubble.
  • A native to put the player alone in a bubble like tutorial session in GTA:O.