1 [
EntityEditorProps(
category:
"GameScripted/ScriptWizard", description:
"THIS IS THE SCRIPT DESCRIPTION.", color:
"0 0 255 255")]
10 [
Attribute(
"", UIWidgets.ResourceNamePicker,
"",
"")]
33 int count = resources.Count();
37 int randomIndex = Math.RandomInt(0, count);
38 return resources[randomIndex];
51 ArmaReforgerScripted game =
GetGame();
55 if (!game.InPlayMode())
60 if (RplSession.Mode() == RplMode.Client)
64 if (randomResource ==
string.Empty)
66 Print(
"Resource is null or empty! Cannot spawn!", LogLevel.ERROR);
70 Resource resource = Resource.Load(randomResource);
74 ref EntitySpawnParams
params =
new EntitySpawnParams();
75 params.TransformMode = ETransformMode.WORLD;
95 if (RplSession.Mode() == RplMode.Client)