Skip to content
User Avatar
#3730
Auto-translated
Azgalor
Is it possible to respawn artifacts and resources? I know that the CreateStatic function wasn't documented, and I haven't seen any information about a resource spawner before. Does something like that exist?
Yes, it exists, but it's also undocumented. CreateTreasure(ScriptName, type, Qty, x, y, floorID, rot) Despite the presence of the first argument, the game won't react in any way to the appearance of such an object. That is, the function can be used once (not assuming, for example, constantly generated resources based on conditions). With artifacts, it's almost the same; the arguments are the same, but instead of type, it will be its ID, and qty will not be used at all. And the function name is CreateArtifact.


Не уходи безропотно во тьму,
Будь яростней пред ночью всех ночей,
Не дай погаснуть свету своему!

Хоть мудрый знает – не осилишь тьму
Во мгле словами не зажжёшь лучей –
Не уходи безропотно во тьму.