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

Print text on screen?

broken avatar :(
Created 8 years ago
by wumbi
0 Members and 1 Guest are viewing this topic.
3,644 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 August 2016
Last active: 6 years ago
Posts
18
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
wumbi's Groups
wumbi's Contact & Social Links
I know what code to use

Code Snippet
Plaintext
system::wait_till( "player_spawned" );
IPrintLn("Hi");

But I don't know where to put it. I have watched every scripting tutorial I could find and I have a bit of C++ knowledge and still can't figure it out. Any help and advice on how to figure things like this out by myself in the future is appreciated!
broken avatar :(
×
broken avatar :(
Location: gbManchester
Date Registered: 21 October 2016
Last active: 2 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
corybestgrill's Groups
Make a function and then call that function in your .gsc file
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
Make a function and then call that function in your .gsc file

Or you can go into your mapname.gsc and add this to the main function.
Code Snippet
Plaintext
callback::on_spawned(&on_player_spawned);

Then make another function like this:
Code Snippet
Plaintext
function on_player_spawned()
{
    // You might need to add wait(2) or wait(3) here so it waits for the black screen to go away.
    self IPrintLnBold("sometext");
}

This is also explained Here
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Or you can go into your mapname.gsc and add this to the main function.
Code Snippet
Plaintext
callback::on_spawned(&on_player_spawned);

Then make another function like this:
Code Snippet
Plaintext
function on_player_spawned()
{
    // You might need to add wait(2) or wait(3) here so it waits for the black screen to go away.
    self IPrintLnBold("sometext");
}

This is also explained Here

Can always use this: level flag::wait_till( "initial_blackscreen_passed" );

Havent seen it in MP, but might work, lol
Last Edit: October 22, 2016, 05:39:00 pm by HitmanVere
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
Can always use this: level flag::wait_till( "initial_blackscreen_passed" );

Havent seen it in MP, but might work, lol

I assume it would since it is a flag::wait_till.

Last time I used it a could swear it did it too early but you can always add like wait(2) to this as well to make it the exact time you want.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 April 2015
Last active: 7 years ago
Posts
40
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Level Designer
×
Taven's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Taven's Contact & Social LinkskingTavenkingTaven_Taven_TavenDevMy Site
Can always use this: level flag::wait_till( "initial_blackscreen_passed" );

Havent seen it in MP, but might work, lol
If I recall correctly MP doesn't need that flag :P

 
Loading ...