Chaos on 22/11/2020 at 18:24
Hey all!
Is it possible to add items via dml? For instance, would it be possible to add 2 health potions via dml to a specific coordinate?
Thanks!
voodoo47 on 22/11/2020 at 19:05
yes, three ways come to mind - the very low tech approach of tweq spawning them from nearby junk objects, then you can use NVCreateAndLink if NVscript is your thing, and you can also spawn them directly I believe, see NewDark docs.
Chaos on 22/11/2020 at 19:14
Quote Posted by voodoo47
yes, three ways come to mind - the very low tech approach of tweq spawning them from nearby junk objects, then you can use NVCreateAndLink if NVscript is your thing, and you can also spawn them directly I believe, see NewDark docs.
Thanks! The newdark docs are a bit criptic on that regard... do you have a concrete example?
downwinder on 22/11/2020 at 20:45
i would love a script to have shadowjack in any mission i want,a file i could just drop into a folder and it works would be amazing
Chaos on 22/11/2020 at 22:13
Quote Posted by downwinder
i would love a script to have shadowjack in any mission i want,a file i could just drop into a folder and it works would be amazing
Something like that would also be lovely!
voodoo47 on 24/11/2020 at 09:34
yes.. sounds lovely indeed.
Inline Image:
https://i.ytimg.com/vi/LSJfBLM65Zk/hqdefault.jpganyway;
Quote Posted by dbmod-sample.dml
// Create a concrete object
Create "Marker"
{
+ObjProp "Position"
{
"Location" 10.0, 20.1, -10.5
"Heading" 0
"Pitch" 0
"Bank" 0
}
+ObjProp "Scripts"
{
"Script 0" "MyScript"
}
}
// Clone a concrete object
Create 35
{
+ObjProp "Position"
{
"Location" 30.9, 85.4, -4.8
"Heading" 4000
"Pitch" 0
"Bank" 0
}
}
Chaos on 25/11/2020 at 08:23
Thanks mate! Will test it later on!
Tested - It works fine!
downwinder on 25/11/2020 at 18:51
how does it works i dont see anything in file that would be a item?
also how would one use it do i put in into a folder? named? and place it where?
i got no idea how to use a dml
Chaos on 25/11/2020 at 22:48
you name it missname.mis.dml
this is an example of a full file
DML1
Create "FireCrystal"
{
+ObjProp "Position"
{
"Location" -124.724, 257.264, 169.324
"Heading" 0
"Pitch" 0
"Bank" 0
}
+ObjProp "Scripts"
{
"Script 0" "MyScript"
}
+ObjProp "StackCount"
{
"" 10
}
}
downwinder on 26/11/2020 at 00:08
^way beyond my skill level,here is a idea have it already made ,people download and are told where to drop it in what folder :)
but thank you for effort