Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Display Grid Number
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Display Grid Number (Read 1113 times)
0 Members and 1 Guest are viewing this topic.
The-Architect
Former Staff
Bite my shiny metal...
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?
Logged
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
»
Logged
The-Architect
Former Staff
Bite my shiny metal...
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?
Logged
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?
Logged
The-Architect
Former Staff
Bite my shiny metal...
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.
Logged
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
Logged
The-Architect
Former Staff
Bite my shiny metal...
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.
Logged
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."
456820
Contributing Member
Re:Display Grid Number
«
Reply #7 on:
13 Aug 2005, 19:55:14 »
solve button
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Display Grid Number
Top of page