Skip to content

Scripts for beginners.

User Avatar
#122
Auto-translated
Ment
That's how you get it from the resources... You need the path to the xdb file, with the addition of a pointer type, etc. Everything is analogous to the function that displays text, or the one that plays a video...
I understand, I found it... I entered it, but the script doesn't work somehow. I changed the script to SetAmbientLight - changes the lighting to a specified level on the map.
It turned out something like this:

SetAmbientLight (0, "/Lights/_(AmbientLight)/Tests/DirtArena01 (2).xdb", false#this is the sharpness of the lighting change#, 50#this is the change time, I don't quite understand what value is best here, maybe I should set it to nil?#);


Added 1 hour 16 minutes ago
Jack_of_shadows
'/path_to_file/file_name.xdb#xpointer(/AmbientLight)'
Standard lighting is located at /Lights/_(AmbientLight)/
You can put your own in an archive with the map in any location.
Okay, thanks. I already understand. I can navigate the data normally)).
Could you tell me where the models and textures for the artifact shop are located? I want to create and place recolored carts in different colors in the editor (like creating a market). I found this item in the data, but it only contains references to a path like this: models\Icons\Mercenary_Camp.tga
I don't know where to look for this models folder. The standard folder in the data (_Models) doesn't work
[url=Таверна (фулдилка) - заходите.