Call of Duty 5: World at War => Tutorial Desk => Scripting => Topic started by: HitmanVere on May 25, 2016, 08:18:19 am
Title: [Tutorial] "Custom" iPrintLnBold using HUD elements + randomized print function
Post by: HitmanVere on May 25, 2016, 08:18:19 am
Got bored, decided to release this, as some people might find it useful. Yes, I know its easy to do yourself. Yes, I know there are better ways. Just something better to use rather than using non-fading iPrintLnBold, that a lot of people use
Text itself in use in 8 seconds:
Code Snippet
Plaintext
/* level.iprint_1 = false; // Need these 3 in init level.iprint_2 = false; level.iprint_3 = false; self thread randomizing_partprint(); // Calling it on player */
At the bottom of your script:
Code Snippet
Plaintext
randomizing_partprint() { text_1 = "Picked up One Thing"; // Change to whatever you like text_2 = "Picked up Anything"; text_3 = "Picked up Something";
Looks better than iPrintLnBold + if you have same model for buildable parts and just want different names each time you pick one part up, then my function adds up on that. Its like in Ghosts, except in Ghosts you had to scavenge from toolboxes and then saw the model for the part while mine is like simpler version of it