jeppelykke 0 Posted June 28, 2003 Hey Hey (: Am making this 3player mp game for me and 2 friends, i like to add this cool stuff i saw on a another server once. I connected and in that intro when "looked" at a person started my "ingame name" how do i do that ? I made my "camara intro" but how do i in my titletext return the player ingamename that plays that person we looking at?! Best Regards Jeppe Lykke, Denmark Share this post Link to post Share on other sites
raedor 8 Posted June 28, 2003 titleText [format ["Name: %1", name player], "plain down"] Share this post Link to post Share on other sites
jeppelykke 0 Posted June 28, 2003 Sorry don't understand, do it automatic find out what the name of the player is ? or... Share this post Link to post Share on other sites
RED 0 Posted June 28, 2003 No it won't, if you want it to find the players name on its own it will be harder. Try taking a look at Kegs spectator script for a starting point. RED Share this post Link to post Share on other sites
jeppelykke 0 Posted June 28, 2003 oh crap Here i hoped it would be easy, ok thanx Red, i try Net Search Share this post Link to post Share on other sites
RED 0 Posted June 28, 2003 I am not sure how you want this to work, you can do something like: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _camera camSetTarget s3 titleText [format ["Name: %1", name s3], "plain down"] RED Share this post Link to post Share on other sites
jeppelykke 0 Posted June 28, 2003 Well i already have the camara to target the 3 players via : <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _cam camsettarget player1 _cam camsetrelpos [0,5,2] _cam camcommit 3 ~5 titletext ["On West Team: \n WANT NAME HERE", "Plain Down"] But insted of player1 i need to get the person ingame name that plays that person player1 ;) Share this post Link to post Share on other sites
RED 0 Posted June 28, 2003 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _cam camsettarget player1 _cam camsetrelpos [0,5,2] _cam camcommit 3 ~5 titletext [format ["On West Team: \n %1", name player1],"Plain Down"] RED Share this post Link to post Share on other sites
jeppelykke 0 Posted June 28, 2003 Great, Thanx Red! (: Share this post Link to post Share on other sites