Page 1 of 1
Cod4 Compile - Text
Posted: June 18th, 2011, 6:16 pm
by A5H73Y
For instance, If a player has finished my map..
How do i make text come on screen saying you have completed the map?

Ive seen it done in like everymap i just dont know how :L
Re: Cod4 Compile - Text
Posted: June 18th, 2011, 6:34 pm
by Pedsdude
You have 2 options:
- Option 1 is to use a trigger_use with a hintstring (this creates the text that moves from side to side in the middle of the screen.)
- Option 2 is to do it with scripting, which is more complicated (although not complicated in itself) and looks more professional.
Your choice of which to use (I won't bother helping further until I know which you want.)
Re: Cod4 Compile - Text
Posted: June 18th, 2011, 6:35 pm
by Goro92
A5H73Y wrote:For instance, If a player has finished my map..
How do i make text come on screen saying you have completed the map?

Ive seen it done in like everymap i just dont know how :L
i know 2 ways:
1:create a trigger-->press N-->key:hintstring-->value:ur text
2:with script
Code: Select all
main()
{
thread finishmap();
}
Â
finishmap()
{
trigger = getent("finishmap","targetname");
Â
  while (1)
  {
   trigger waittill ("trigger", user );
   if ( isPlayer( user ) && isAlive( user ) && isdefined( user.done) )
        {
        wait 0.5;
        }
   else Â
     {
user iprintlnbold ("Congratulations, " + user.name + ", you have completed the map!"); Â
     user.done = true;
     }
  }
}
Re: Cod4 Compile - Text
Posted: June 18th, 2011, 11:12 pm
by A5H73Y
The first option sounds better for someone of my knowledge, ill try it tomorrow
Thanks!
