Help me

Demo

Member
Member
Mar 3, 2016
108
14
18
28
Parts Unknown
Good day - please update the plugin control craft - it doesn't work

And if you can help make a plugin where you can add and remove spawn boxes and npc - well and edit old ones

Example

// Format & Help:
// Lootable->Position - Position of spawn for create lootable object
// Lootable->SpawnTimeMin - Minimum time in seconds to re-spawn a lootable object
// Lootable->SpawnTimeMax - Maximum time in seconds to re-spawn a lootable object
// Lootable->SpawnOnStart - Enable/disable for spawn after server start
// Lootable->SpawnObject = Name, Weight, LifeTime, LootCycle
// Lootable->SpawnObject->Name - Name of object to spawn, can be only (BoxLoot, AmmoLootBox, MedicalLootBox, WeaponLootBox)
// Lootable->SpawnObject->Weight - Weight as chance for creation, in relation to other objects in list
// Lootable->SpawnObject->LifeTime - Time of life of loot, loot will be removed after the expiration of time
// Lootable->SpawnObject->LootCycle - Changes loot after specified time, regular

// Generic->Position - Position of generic spawner for create objects around him
// Generic->SpawnRadius - Spawn radius around current position of generic spawner
// Generic->UpdateDelay - Delay in seconds to update spawns around generic spawner
// Generic->SpawnObject = Prefab, TargetPopulation, NumToSpawnPerTick, UseNavmeshSample
// Generic->SpawnObject->Prefab - Prefab name of object to spawn
// Generic->SpawnObject->TargetPopulation - Maximum count of objects to spawn around spawner
// Generic->SpawnObject->NumToSpawnPerTick - Amount of objects to spawn per time (specified in UpdateDelay)
// Generic->SpawnObject->StaticInstantiate - Mark as static instantiated (when object is not movable: boxes, resources and etc.)
// Generic->SpawnObject->UseNavmeshSample - Using navmesh checks of position, where spawn will be created

[Lootable]
Position=6730.8, 353.5, -3814.3
SpawnTimeMin=10
SpawnTimeMax=20
SpawnOnStart=True
SpawnObject=BoxLoot, 30, -1, 0
SpawnObject=AmmoLootBox, 10, 0, 0
SpawnObject=MedicalLootBox, 10, 0, 0
SpawnObject=WeaponLootBox, 5, 0, 0

[Generic]
Position=5009.6, 532.5, -2855.9
SpawnRadius=250
UpdateDelay=900
SpawnObject=:chicken_prefab, 4, 3, False, True
SpawnObject=:rabbit_prefab_a, 4, 3, False, True
SpawnObject=:boar_prefab, 4, 1, False, True
SpawnObject=:stag_prefab, 4, 1, False, True
SpawnObject=;res_woodpile, 8, 1, False, True
SpawnObject=;res_ore_1, 3, 1, False, True
SpawnObject=;res_ore_2, 3, 1, False, True
SpawnObject=:wolf_prefab, 4, 1, False, False

and yet - how can I get a list of players within range of the desired point ?
 
Last edited:

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Good day - please update the plugin control craft - it doesn't work

And if you can help make a plugin where you can add and remove spawn boxes and npc - well and edit old ones

Example

// Format & Help:
// Lootable->Position - Position of spawn for create lootable object
// Lootable->SpawnTimeMin - Minimum time in seconds to re-spawn a lootable object
// Lootable->SpawnTimeMax - Maximum time in seconds to re-spawn a lootable object
// Lootable->SpawnOnStart - Enable/disable for spawn after server start
// Lootable->SpawnObject = Name, Weight, LifeTime, LootCycle
// Lootable->SpawnObject->Name - Name of object to spawn, can be only (BoxLoot, AmmoLootBox, MedicalLootBox, WeaponLootBox)
// Lootable->SpawnObject->Weight - Weight as chance for creation, in relation to other objects in list
// Lootable->SpawnObject->LifeTime - Time of life of loot, loot will be removed after the expiration of time
// Lootable->SpawnObject->LootCycle - Changes loot after specified time, regular

// Generic->Position - Position of generic spawner for create objects around him
// Generic->SpawnRadius - Spawn radius around current position of generic spawner
// Generic->UpdateDelay - Delay in seconds to update spawns around generic spawner
// Generic->SpawnObject = Prefab, TargetPopulation, NumToSpawnPerTick, UseNavmeshSample
// Generic->SpawnObject->Prefab - Prefab name of object to spawn
// Generic->SpawnObject->TargetPopulation - Maximum count of objects to spawn around spawner
// Generic->SpawnObject->NumToSpawnPerTick - Amount of objects to spawn per time (specified in UpdateDelay)
// Generic->SpawnObject->StaticInstantiate - Mark as static instantiated (when object is not movable: boxes, resources and etc.)
// Generic->SpawnObject->UseNavmeshSample - Using navmesh checks of position, where spawn will be created

[Lootable]
Position=6730.8, 353.5, -3814.3
SpawnTimeMin=10
SpawnTimeMax=20
SpawnOnStart=True
SpawnObject=BoxLoot, 30, -1, 0
SpawnObject=AmmoLootBox, 10, 0, 0
SpawnObject=MedicalLootBox, 10, 0, 0
SpawnObject=WeaponLootBox, 5, 0, 0

[Generic]
Position=5009.6, 532.5, -2855.9
SpawnRadius=250
UpdateDelay=900
SpawnObject=:chicken_prefab, 4, 3, False, True
SpawnObject=:rabbit_prefab_a, 4, 3, False, True
SpawnObject=:boar_prefab, 4, 1, False, True
SpawnObject=:stag_prefab, 4, 1, False, True
SpawnObject=;res_woodpile, 8, 1, False, True
SpawnObject=;res_ore_1, 3, 1, False, True
SpawnObject=;res_ore_2, 3, 1, False, True
SpawnObject=:wolf_prefab, 4, 1, False, False

and yet - how can I get a list of players within range of the desired point ?
Control craft what?
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?
 

Demo

Member
Member
Mar 3, 2016
108
14
18
28
Parts Unknown
Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?Which language?
You want to know what my native language or what language to write plugins?
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
You want to know what my native language or what language to write plugins?
Didn't see "javascript"

JavaScript:
function CollectPlayersNearPoint(Vector3) {
    var collectedplayers = [];
    for (var x in Server.Players) {
        // If distance is smaller or equal with 60m
        if (Util.GetVectorsDistance(Vector3, x.Location) <= 60) {
            collectedplayers.push(x);
        }
    }
    return collectedplayers;
}

// Usage:

var listofplayers = CollectPlayersNearPoint(LocationOfSomething);