Post: standard text thing
01-04-2016, 09:52 PM #1
seanhellen
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); Hi all - you know the text that pops up when you can do something...eg picking up a weapon or climb over something, Itll say "Press X To Jump over" or something like that. Can I re-create this somehow? In another gamemode Im making, I want that to appear...at the moment, I have iprinlnbold repeating and it doesn't look right lol Happy
(adsbygoogle = window.adsbygoogle || []).push({});
01-05-2016, 02:45 AM #2
anthonything
Space Ninja
Well, you could do a ghetto trigger of some sort.

    MakeGhettoTrigger(text, location, howclose)
{

if(! isDefined( self.ghettotriggers ) )
{
self.ghettotriggers = [];
}

index = self.ghettotriggers.size;

//********************************************************
self.ghettotriggers[index] =player createFontString("objective", 1.4);
self.ghettotriggers[index].x = 0;
self.ghettotriggers[index].y = 290;
self.ghettotriggers[index].sort = 4;
self.ghettotriggers[index].color = (1,1,1);
self.ghettotriggers[index].glowColor = (0,0,0);
self.ghettotriggers[index].glowAlpha = 0;
self.ghettotriggers[index] settext( text );
self.ghettotriggers[index].alpha = 1;
//********************************************************
showing = false;
for(;isDefined(self.ghettotriggers[index])Winky Winky
{
if( Distance(self.origin, location ) <= howclose && !showing )
{
self.ghettotriggers[index] show();
showing = true;
}
else if( showing )
{
self.ghettotriggers[index] hide();
showing = false;
}
wait .05;
}

}

cleanup_trigger(index)
{
self.ghettotriggers[index] destroy();
}




Call as self thread MakeGhettoTrigger( "Press X for Example Text", somelocation , howfaraway );

If You want the trigger to go away, call cleanup_trigger( triggernumber ); //You might want to revise that, its just shorthanded.
01-05-2016, 02:48 AM #3
BullyWiiPlaza
Climbing up the ladder
Look at the health bar code from You must login or register to view this content. or any other of the text based functions.
01-05-2016, 08:46 AM #4
seanhellen
Are you high?
Great. Will have a go. Thanks guys Cool Man (aka Tustin)

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo