Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: hahaDuNOOB
hello modme useres
someone know how to get structs in my script and how to move entety's to it
and how to get model/lights/.. to get invisible and let it apier again
thanks.
ModmeBot:
Reply By: Abnormal202
to get a struct in script use:
and you can use a move command such as MoveTo, and make it go to the origin of the struct:
ModmeBot:
Reply By: mathfag
hahaDuNOOB
Abnormal202
to get a struct in script use:
and you can use a move command such as MoveTo, and make it go to the origin of the struct:
remove the comma "," in the last line after the "2" so it would be
ModmeBot:
Reply By: hahaDuNOOB
Abnormal202
to get a struct in script use:
and you can use a move command such as MoveTo, and make it go to the origin of the struct:
ModmeBot:
Reply By: hahaDuNOOB
mathfag
hahaDuNOOB
Abnormal202
to get a struct in script use:
and you can use a move command such as MoveTo, and make it go to the origin of the struct:
remove the comma "," in the last line after the "2" so it would be
thanks but in game it still dont work
ModmeBot:
Reply By: mathfag
hahaDuNOOB
mathfag
hahaDuNOOB
Abnormal202
to get a struct in script use:
and you can use a move command such as MoveTo, and make it go to the origin of the struct:
remove the comma "," in the last line after the "2" so it would be
thanks but in game it still dont work
did you make sure that you're using a script model or brushmodel?
ModmeBot:
Reply By: hahaDuNOOB
mathfag
hahaDuNOOB
mathfag
hahaDuNOOB
Abnormal202
to get a struct in script use:
and you can use a move command such as MoveTo, and make it go to the origin of the struct:
remove the comma "," in the last line after the "2" so it would be
thanks but in game it still dont work
did you make sure that you're using a script model or brushmodel?
the model is a model the brush is a brush and struct a script struct with no model selected
ModmeBot:
Reply By: Abnormal202
hahaDuNOOB
Abnormal202
to get a struct in script use:
and you can use a move command such as MoveTo, and make it go to the origin of the struct:
In Radiant you should have defined the struct as targetname = test_struct . However in script, you define that struct as just "struct". you should change the MoveTo function to:
ModmeBot:
Reply By: hahaDuNOOB
Abnormal202
to get a struct in script use:
and you can use a move command such as MoveTo, and make it go to the origin of the struct:
my script dont finde my struct
ModmeBot:
Reply By: Abnormal202
hahaDuNOOB
Abnormal202
to get a struct in script use:
and you can use a move command such as MoveTo, and make it go to the origin of the struct:
my script dont finde my struct
Did you give your struct the same targetname as you define in script?
ModmeBot:
Reply By: hahaDuNOOB
Abnormal202
hahaDuNOOB
Abnormal202
to get a struct in script use:
and you can use a move command such as MoveTo, and make it go to the origin of the struct:
my script dont finde my struct
Did you give your struct the same targetname as you define in script?
yea nsz says something with a variable
ModmeBot:
Reply By: mathfag
hahaDuNOOB
Abnormal202
to get a struct in script use:
and you can use a move command such as MoveTo, and make it go to the origin of the struct:
The compiler doesn't see the struct because you didn't name it. You need to put the name in parenthesis and put the comma right after it (no space)
ModmeBot:
Reply By: Abnormal202
To be blunt, what's circled in red is the problem:
in radiant you give the struct the targetname "test_struct" but then in script you define that struct as just "struct". That means anything you do in script with it you must reference it as "struct", not "test_struct" because that is just the targetname of it, and it has no real meaning in script. It should be: