Jump to content
Sign in to follow this  
jeppelykke

Camara intro how to?

Recommended Posts

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

titleText [format ["Name: %1", name player], "plain down"]

Share this post


Link to post
Share on other sites

Sorry don't understand, do it automatic find out what the name of the player is ? or...

biggrin_o.gif

Share this post


Link to post
Share on other sites

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

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

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

<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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×