Home   Help Search Login Register  

Author Topic: Display Grid Number  (Read 1114 times)

0 Members and 1 Guest are viewing this topic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Display Grid Number
« on: 13 Aug 2005, 18:03:30 »
I have a shot down pilot and I want to have updates on his position displayed via radio message. How do I go about this?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

bored_onion

  • Guest
Re:Display Grid Number
« Reply #1 on: 13 Aug 2005, 18:12:02 »
theres a really cool function which will return the grid co-ordinates of a unit

http://www.ofpec.com/editors/funcref.php?filter_func=11

i think that should be what you're after - unless you need to know how to format it into the sidechat, but i think you probably know that already.
« Last Edit: 13 Aug 2005, 18:13:12 by bored_onion »

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Display Grid Number
« Reply #2 on: 13 Aug 2005, 18:30:38 »
That works fine for the player but when I tried it for a guy called pilot it didn't return anything. What do I do to make it work?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

bored_onion

  • Guest
Re:Display Grid Number
« Reply #3 on: 13 Aug 2005, 19:19:28 »
what was the syntax you were using to call the function?

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Display Grid Number
« Reply #4 on: 13 Aug 2005, 19:22:10 »
player groupChat format ["%1", [getPos player] call Gridcoord] is the bones of it. I changed the player bits to Pilot.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

bored_onion

  • Guest
Re:Display Grid Number
« Reply #5 on: 13 Aug 2005, 19:26:34 »
including to "pilot groupchat etc"?

cant think why else it would be doing it... ???

try doing it in a script and passing the position of the pilot as a variable

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Display Grid Number
« Reply #6 on: 13 Aug 2005, 19:33:23 »
Talk about a blond moment. You got it right, I was telling the pilot to tell his group where he was. Thanks for your help.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline 456820

  • Contributing Member
  • **
Re:Display Grid Number
« Reply #7 on: 13 Aug 2005, 19:55:14 »
solve button