Replies: 2 comments
-
In the mean time you can get them from this repository: https://github.com/Unturned-Datamining/Unturned-Datamining/blob/linux-client-preview/Assembly-CSharp/SDG.Unturned/AirdropSpawner.cs You can remove anything with errors that youre not using and just keep what you are, for example that one would turn into: using UnityEngine;
namespace SDG.Unturned;
/// <summary>
/// Allows Unity events to call in airdrops.
/// </summary>
[AddComponentMenu("Unturned/Airdrop Spawner")]
public class AirdropSpawner : MonoBehaviour
{
[Tooltip("Optional ID or GUID of spawn table asset to override cargo with when SpawnDefault is invoked.")]
public string DefaultCargoSpawnTable;
[Tooltip("If set, find spawnpoint node by name and call in airdrop there.")]
public string SpawnpointName;
[Tooltip("If true, select a random valid airdrop node and call in airdrop there.")]
public bool UseRandomAirdropNode;
public void SpawnDefault()
{
Spawn(DefaultCargoSpawnTable);
}
public void Spawn(string cargoSpawnTableId)
{
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks DanielWillet, though they should be in the project package last I checked. 😕 If you re-import the latest Project.unitypackage do they show up? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Nelson. I was looking at the mod hooks list on the Official Documentation page and wanted to add them to my project, but as it turned out, they are missing from ExampleAssets.unitypackage, although information about them is present on the official wiki page.
Here is a list of mentioned mod hooks that I could not find:
GunAttachmentEventHook.cs
AirdropSpawner.cs
BarricadeSpawner.cs
ItemSpawner.cs
VehicleSpawner.cs
BarricadeDestroyerComponent.cs
CraftingTagProviderComponent.cs
CraftingTagModifierComponent.cs
MusicAudioSource.cs
RepeatComponent.cs
How soon can you add them to the unity project?
P.S.
Could you add the ability to customize the duration of the effect and sound to the Flashbang.cs setting? This would make flashbangs for mods more realistic and allow them to be used for some other cool purposes.
P.S. 2
Could you further synchronize the release of the modhook for Unity with the appearance of information about it in the official documentation and in the game itself?
Thank you for your attention.
Beta Was this translation helpful? Give feedback.
All reactions