OMD.Events 1.2.1

Additional Details

Since 1.4.0 there's a custom event handlers subscription. It is recommended to use versions >= 1.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package OMD.Events --version 1.2.1                
NuGet\Install-Package OMD.Events -Version 1.2.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OMD.Events" Version="1.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OMD.Events --version 1.2.1                
#r "nuget: OMD.Events, 1.2.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install OMD.Events as a Cake Addin
#addin nuget:?package=OMD.Events&version=1.2.1

// Install OMD.Events as a Cake Tool
#tool nuget:?package=OMD.Events&version=1.2.1                

OMD.Events

An Unturned OpenMod plugin which implements additional events and allows developers to easily implement their own events interface.

How to install or update plugin

Install plugin with command: openmod install OMD.Events

How to easily implement your own additional events

  • In progress...

Implemeted events

OMD.Events.Weapons
  • UnturnedPlayerChangedFiremodeEvent fired when player changed his weapons fire mode
    • UnturnedPlayer Player - player's instance
    • UseableGun Gun - weapon which player is holding
    • EFireMode Firemode - new weapons fire mode
  • UnturnedPlayerChangedMagazineEvent fired when player changed his weapons magazine
    • UnturnedPlayer Player - player's instance
    • UseableGun Gun - weapon which player is holding
    • ItemJar ItemJar - item jar of new weapons magazine
  • UnturnedPlayerInspectingWeaponEvent fired when player start to inspect his weapon
    • UnturnedPlayer Player - player's instance
    • UseableGun Gun - weapon which player is holding
  • UnturnedPlayerSpawnedBulletEvent - fired when player shoot from his weapon
    • UnturnedPlayer Player - player's instance
    • UseableGun Gun - weapon which player is holding
    • BulletInfo BulletInfo - information about the fired bullet
OMD.Events.Useable
  • UnturnedPlayerUseableConsumedEvent fired when player ate, drank or used any medicine on himself or other player
    • UnturnedPlayer Player - instigator's instance
    • UnturnedPlayer Target - instance of player on whom useable has been used
    • ItemConsumeableAsset Asset - asset info of useable which has been used
OMD.Events.Permissions
  • UnturnedPlayerPermissionAddedEvent fired when player got a permission
    • UnturnedPlayer Player - player's instance
    • string Permission - permission which has been granted
  • UnturnedPlayerPermissionRemovedEvent fired when player's permission has been taken away
    • UnturnedPlayer Player - player's instance
    • string Permission - permission which has been taken away
OMD.Events.NPC
  • UnturnedPlayerPermissionAddedEvent fired when player triggered NPC event
    • UnturnedPlayer Player - player's instance
    • string EventId - Id of triggered event
Product Compatible and additional computed target framework versions.
.NET Framework net481 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on OMD.Events:

Package Downloads
OMD.PlayersFeatures

A plugin for Unturned/OpenMod, which allows you to use improved God and Vanish modes.

OMD.Zones

An OpenMod / Unturned plugin which implements optimized zones using server-side colliders.

GitHub repositories

This package is not used by any popular GitHub repositories.