Spawning model with trigger use
Game Modding | Call of Duty: Black Ops 3 | Scripting
Pepergogo:
Hi
So yeah, I was wondering if is possible to spawn a model using a "trigger_use"?
I have a sound and it activates when you press the trigger, and I want to also spawn a model at the same time. Here's my script:
Spiki:
Hi
So yeah, I was wondering if is possible to spawn a model using a "trigger_use"?
I have a sound and it activates when you press the trigger, and I want to also spawn a model at the same time. Here's my script:
#precache( "model", "<model alias>");
//at the top. also add to zone unless you have this model in the map already
after trig. put down a script_struct where you want the model to spawn. you can give it the kvp "model" to see how it would look ingame
Pepergogo:
#precache( "model", "<model alias>");
//at the top. also add to zone unless you have this model in the map already
after trig. put down a script_struct where you want the model to spawn. you can give it the kvp "model" to see how it would look ingame
Thanks a lot!