Jump to content
Sign in to follow this  
nordin dk

Player names appearing in intro...

Recommended Posts

I just finished doing all the camera work for my intro (my first camera script...*pads self on back*)

I have seen maps where the names of the players who are currently playing, are displayed in the intro.

How is this done?

Share this post


Link to post
Share on other sites

What are you trying to explain? are you trying to add simple names as the people named in the mission or the names of people that join?

I have never seen peoples names just appear when they join......

If your wanting to add names, then go back into your camera script file and add

titlecut ["name", "plain down", 2]

Share this post


Link to post
Share on other sites

name object

Operand types:

object: Object

Type of returned value:

String

Description:

Name of variable assigned to object in mission editor. In used on vehicle, name of first crew member (in order commander, driver, gunner).

Example:

name vehicle player

taken from the official comref

I'm not sure, but i think when you take control over a

playable unit (which already owns a default name: greg byrd)

the name will be occupied by the name of the player, which

takes control.

Just try what rob said, and maybe it works.

I'll also try it out, sounds interresting to include in some

missions.

Share this post


Link to post
Share on other sites

No that's not what I mean,

Example: DV Chris Death logs on to a mp game. He's playing Rob in a deathmatch. Dv Chris Death is west, Rob is east.

The intro shows the two players, and when the camera reaches DV Chris Death's unit a text message appears saying. "In the blue corner, representing the west: DV Chris Death. And when the camera reaches Rob's character it says "In the blue corner, representing east...it's Rob".

Share this post


Link to post
Share on other sites

Why are they both in the blue corner?

DV Chris Death. It does say in your post:

Description:

Name of "VARIABLE" assigned to object in the "MISSION EDITOR".

I think you'll need to write a script that gets info from the players cfg file or something. I wouldn't have a clue how though.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (amos m @ Jan. 19 2002,01:06)</td></tr><tr><td id="QUOTE">Why are they both in the blue corner?<span id='postcolor'>

lol

That was a typo

Share this post


Link to post
Share on other sites

Trying to *bump* a bit of life into this as of yet unanswered question.

I take it the name (talking about the players screen-name, not the name that OFP assigns to units in the game) of the player has to taken from his config file, but how?

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (nordin dk @ Feb. 13 2002,22:09)</td></tr><tr><td id="QUOTE">Trying to *bump* a bit of life into this as of yet unanswered question.

I take it the name (talking about the players screen-name, not the name that OFP assigns to units in the game) of the player has to taken from his config file, but how?<span id='postcolor'>

I know what you mean, but I don't know how to do it. (Just so that you know that you're not alone in here tounge.gif )

Share this post


Link to post
Share on other sites

Hi nordin_dk!

Hint: When you use the chat command, the playername is revealed! I don't know if that works but maybe it could bring you closer to a solution??!?

Example: wplr1 GlobalChat "I'm in the blue corner"

- where wplr1 is the objectID handle for the unit

Happy editing - from one dane to another tounge.gif

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (niki @ Feb. 16 2002,12:15)</td></tr><tr><td id="QUOTE">Hi nordin_dk!

Hint: When you use the chat command, the playername is revealed! I don't know if that works but maybe it could bring you closer to a solution??!?

Example: wplr1 GlobalChat "I'm in the blue corner"

- where wplr1 is the objectID handle for the unit

Happy editing - from one dane to another  tounge.gif<span id='postcolor'>

Yes, perhaps. Thank you Niki.

Jeg er lidt af en spasser til det her, men det er sjovt at prřve sig frem smile.gif

Share this post


Link to post
Share on other sites

I'm not 100% sure if I remember correctly but....

unitname globalchat format ["playername%1","Text to be displayed along with the current player's nickname"]

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  

×