UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: MisterDeadeye on October 01, 2016, 06:40:25 pm

Title: Different wall-buy
Post by: MisterDeadeye on October 01, 2016, 06:40:25 pm
What's up, guys? So I want to add an RK5 model, place it on a table, and I want to script it so that it can be interacted with(and bought) much like a wall-buy. If it's possible to make the gun disappear afterward, without too much trouble, that's the end goal, but if not, that's fine too.

Can anyone help me out with that, or point me in the direction so that I can read how to do so myself?
Title: Re: Different wall-buy
Post by: reckfullies on October 01, 2016, 10:48:11 pm
Here is a tutorial by JBird that shows how to make a simple purchase loop with a trigger.
Just use this and put a RK5 model on the table with a trigger and there you go.
Then just give the player an RK5.

This would need to be done differently though if you want it to do ammo afterwords.

As for making it disappear, you could move the RK5 model out of the map, However everything i've tried to move a model in script hasn't worked so far.

Link to Video (http://www.youtube.com/watch?v=bvnmGmhldag)
Title: Re: Different wall-buy
Post by: MisterDeadeye on October 01, 2016, 11:53:26 pm
Here is a tutorial by JBird that shows how to make a simple purchase loop with a trigger.
Just use this and put a RK5 model on the table with a trigger and there you go.
Then just give the player an RK5.

This would need to be done differently though if you want it to do ammo afterwords.

As for making it disappear, you could move the RK5 model out of the map, However everything i've tried to move a model in script hasn't worked so far.

Link to Video (http://www.youtube.com/watch?v=bvnmGmhldag)

Awesome, thanks for the concise reply! I must have subscribed to him after he posted this. I should really go back and watch all of his mod tools videos.
Title: Re: Different wall-buy
Post by: avidpenguin on October 09, 2016, 02:13:51 pm
Here is a tutorial by JBird that shows how to make a simple purchase loop with a trigger.
Just use this and put a RK5 model on the table with a trigger and there you go.
Then just give the player an RK5.

This would need to be done differently though if you want it to do ammo afterwords.

As for making it disappear, you could move the RK5 model out of the map, However everything i've tried to move a model in script hasn't worked so far.

Link to Video (http://www.youtube.com/watch?v=bvnmGmhldag)

Couldn't you just use getEnt for the model then call Delete() ? That works for me in my easter egg hunt part...