UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

How do I make items that I can pick up and use in the map (Black Ops 3 Mod Tool)

broken avatar :(
Created 8 years ago
by ulraz_viper
0 Members and 1 Guest are viewing this topic.
3,704 views
broken avatar :(
×
broken avatar :(
Location: gbEurope
Date Registered: 20 September 2016
Last active: 2 years ago
Posts
17
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ulraz_viper's Groups
ulraz_viper's Contact & Social Links
Hi, I was wondering if anyone knew how I could put models in the map which I could pick up and have in my inventory? Any ideas, Thanks.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 17 February 2014
Last active: 1 year ago
Posts
69
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
What is broken can be reforged
Signature
Completed maps:
Kingdom Hearts - World at War Link
Minecraft - Black ops 3 Link

WIP:
~

×
shinged's Groups
shinged's Contact & Social LinksShingedvinny545TheShingedMatarra_
Hello mr sir, I am writing this from school so there might be some errors as I cant test it, but ill see what I can do.

We'll start with the radiant part, you only need 2 things, your script_model and your trigger.
 - Create a script model and give it these KVP's "targetname", "item_pickup1".
 - Now create a trigger_use ( or a trigger radius if you don't want the player to have to hold F) and give it the KVP
"targetname", "item_pickup_trig1".

That's it for radiant, now open up your mapname gsc located in root\usermaps\<mapname>\scripts\ (path could be different, not home to check). Open the larger size file (Not sure if that matters, but it works for me) and add this code to your main function somewhere
Code Snippet
Plaintext
level thread item_pickup();

Now at the bottom of the file add this
Code Snippet
Plaintext
function item_pickup_init()
{
    thread item_pickup();
   
    //thread item_pickup1();
    /*
    If you want to add more items, copy the item_pickup function and paste it
    but add a 1 to it. Then uncomment //thread item_pickup1();
    */
}

/*
    Copy below function and change targetnames to add more items.
    obviously add the items in radiant if you do.
*/

function item_pickup()
{
    item_model = GetEnt("item_pickup1", "targetname");
    item_pickup_trig = GetEnt("item_pickup_trig1", "targetname");
   
    item_pickup_trig sethintstring("Press and hold &&1 to pickup item"); // Set hintstring text here
    item_pickup_trig setcursorhint("HINT_NOICON"); // You can comment this out if this line gives you an error
   
    item_pickup_trig waittill("trigger", player;
   
    item_model delete();
    item_pickup_trig delete();
   
    // Code for what you want item to do once picked up goes here.
}

I wrote this script while in school so its untested and im limited in time, goodluck mr sir.
broken avatar :(
×
broken avatar :(
Location: gbEurope
Date Registered: 20 September 2016
Last active: 2 years ago
Posts
17
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ulraz_viper's Groups
ulraz_viper's Contact & Social Links
Thank you sir, I'd already worked this out.. But a very kind thank you for the reply to the thread.

 
Loading ...