Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: mathfag
Im making a easter egg step where you take a model and place it on a box (I have this part figured out). My question is how to i make this model spawn on the box after i place it there and play an effect?
ModmeBot:
Reply By: natesmithzombies
You need to add a script_struct where you want the model to spawn. Give it the correct targetname and model KVP and then add the following code in the right places in your script:
ModmeBot:
Reply By: mathfag
natesmithzombies
You need to add a script_struct where you want the model to spawn. Give it the correct targetname and model KVP and then add the following code in the right places in your script:
Also how would I change the angle of the model
ModmeBot:
Reply By: natesmithzombies
mathfag
natesmithzombies
You need to add a script_struct where you want the model to spawn. Give it the correct targetname and model KVP and then add the following code in the right places in your script:
This is what I added and nothing spawned but the lighting state changed so the script is called
Script struct is called "place_spot"
Also how would I change the angle of the model
Did you precache the model and add it to zone? You should really add the KVP:
model - p7_zm_zod_relic_boxer
to the struct as I stated. It is much cleaner and allows for dynamic updating in Radiant instead of through script. To add the angles you can simply do:
ModmeBot:
Reply By: mathfag
natesmithzombies
mathfag
natesmithzombies
You need to add a script_struct where you want the model to spawn. Give it the correct targetname and model KVP and then add the following code in the right places in your script:
This is what I added and nothing spawned but the lighting state changed so the script is called
Script struct is called "place_spot"
Also how would I change the angle of the model
Did you precache the model and add it to zone? You should really add the KVP:
model - p7_zm_zod_relic_boxer
to the struct as I stated. It is much cleaner and allows for dynamic updating in Radiant instead of through script. To add the angles you can simply do:
Thank you very much for your help. Everything works fine now. It turns out I just made an almoast invisible spelling mistake.