Change color of reference point??

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
Zyph
Posts: 40
Joined: Mon Sep 12, 2022 6:58 pm

Change color of reference point??

Post by Zyph »

Anybody know how to change color of the reference pint in lua?
User avatar
blu3s
Posts: 1065
Joined: Fri Jul 08, 2022 9:45 am

Re: Change color of reference point??

Post by blu3s »

With the function ScenEdit_AddReferencePoint() when you creates a new reference point you pass the color as param.
.
.
Captura.PNG
Captura.PNG (61.28 KiB) Viewed 552 times
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: Change color of reference point??

Post by michaelm75au »

Quick example
ScenEdit_AddReferencePoint({side='blue', color='green', longitude=0, latitude=0})
or
ScenEdit_SetReferencePoint({side='blue', guid='GNRIJH-0HML53VSSU72S', color='yellow'})
Michael
Zyph
Posts: 40
Joined: Mon Sep 12, 2022 6:58 pm

Re: Change color of reference point??

Post by Zyph »

Thank you!!
DavidRN
Posts: 91
Joined: Tue Jan 17, 2023 8:41 pm

Re: Change color of reference point??

Post by DavidRN »

Hi There

I tried the above it creates the reference point but stays white not green

ScenEdit_AddReferencePoint({side='Royal Australian Navy', latitude='S 22.50.34', longitude='E 150.25.37', highlighted=true, color='green'})

I watched a YouTube clip which was created three months ago my Missions + Ref Points drop down menu seems to be different as I do not see.....

Air Tasking Order
Reference Point Manger
Define Reference Point Color

My CMO Downloaded from Steam Command v1.04-Build 1147.52
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: Change color of reference point??

Post by michaelm75au »

This works correctly with the latest 1.05.
I don't think it is available in 1.04.
Michael
Post Reply

Return to “Lua Legion”